Commit Graph

283 Commits

Author SHA1 Message Date
Song-Zi Vong fe203417d9
feat: add a hook to insert custom metadata in `head` tag (#1015) 2023-05-06 07:10:08 +08:00
Song-Zi Vong 6fec411c18
fix: mode-toggle leads to Disqus loading failure (#945) 2023-03-22 22:22:07 +08:00
Cotes Chung 820ba62e9e
fix: notch status bar doesn't match theme color (#918)
Resolves #918
2023-03-17 01:17:06 +08:00
Cotes Chung 02b7bd5095
feat: change TOC plugin to `tocbot` (#774) 2023-03-16 03:00:29 +08:00
Cotes Chung b69d3d7edd
refactor(build): modularize JS code
- replace gulp with rollup
- remove JS output from repo
2023-03-15 21:51:37 +08:00
Cotes Chung 5cbaf24bcb
refactor(sidebar): improve creation of social links 2023-02-06 22:33:20 +08:00
Cotes Chung babb4a0c5a
fix: prompt with nested blockquotes renders incorrectly (#846)
Resolves #846
2023-01-30 04:58:30 +08:00
Cotes Chung f2d285844e
fix: correct encoding of spaces in share URLs (#835)
Resolves #835
2023-01-06 21:26:43 +08:00
Cotes Chung 7a3d743419
chore: update footer meta information 2022-12-25 23:48:37 +08:00
Ken Dale d2190c726f
feat: add `rel="me"` to Mastodon sidebar contact links for verification (#807)
This will enable verification with Mastodon by including the `rel="me"` attribute.
https://docs.joinmastodon.org/user/profile/#verification

Co-authored-by: Cotes Chung <11371340+cotes2020@users.noreply.github.com>
2022-12-25 03:31:11 +08:00
Cotes Chung ed6dc539ef
feat: add embed video support 2022-12-25 00:00:07 +08:00
Cotes Chung 8de1abda6b
fix: `og:image` will be incorrect if the image uses a cross-domain URL 2022-12-25 00:00:07 +08:00
Cotes Chung ab16fdc7fc
feat: add shimmer background when image loads 2022-12-24 23:51:47 +08:00
Cotes Chung bffaf6374f
feat: support LQIP for images 2022-12-15 02:27:12 +08:00
Cotes Chung ca41c7ebff
chore(deps): use `lazysizes` to load images 2022-12-09 07:36:06 +08:00
Cotes Chung 7efd2f8aa2
fix: spaces in post title are encoded when sharing
Reproducible on iOS Safari
2022-12-08 01:05:17 +08:00
Cotes Chung ec98f07aca
fix: refactoring error when the image URL contains parameters 2022-12-08 00:40:12 +08:00
Cotes Chung b0d5956f5a
fix(comment): disqus doesn't follow theme mode switching 2022-11-22 19:05:19 +08:00
Cotes Chung da7d7e25b6
refactor: enhance the setting of preview image path 2022-11-18 22:16:35 +08:00
Cotes Chung f6e9a3fccf
fix: the image URL in the SEO-related tags is incomplete (#754)
This issue occurs when setting the `img_path` of the post or the `baseurl` of the site configuration.
2022-11-17 07:31:05 +08:00
Cotes Chung 48f14e39ac
fix: `mermaid` occasionally fails to initialize (#536) 2022-11-05 04:58:23 +08:00
Cotes Chung 1fd665bf49
perf: modify checkbox icon with `Liquid`
Also optimize list padding start
2022-10-24 21:06:02 +08:00
Cotes Chung d96fa5aa0c
refactor: reduce language include file 2022-10-19 04:22:13 +08:00
Cotes Chung 6852ceb280
refactor: remove site config option `prefer_datetime_locale` 2022-10-19 04:22:12 +08:00
Cotes Chung f904e8cd48
refactor(locale): restore options for changing date format (#716) 2022-10-19 04:14:59 +08:00
Petr Ruzicka 70662a0365
chore(giscus): add `reactions-enabled` option (#712) 2022-10-15 04:31:44 +08:00
Cotes Chung fd5df7e1a1
refactor(typo): optimize the site-title position 2022-10-13 22:36:09 +08:00
Cotes Chung 49bb93cc0c
perf(layout): improve the min-height of main content (#674) 2022-09-29 22:50:40 +08:00
Cotes Chung b405a58838
refactor: make sure there is space at the bottom of core block 2022-08-09 16:43:01 +08:00
Nihil 3fa1bf3054
fix: code contains spaces in headings (#644) 2022-07-23 19:10:20 +08:00
Cotes Chung fd0f983bbe
chore: optimize the layout of main content and search input 2022-06-09 03:46:47 +08:00
Cotes Chung 5d6e8c5ef6
perf: improve the responsive design for ultrawide screens (#540)
Resolves #540
2022-06-08 16:15:38 +08:00
Cotes Chung 106c981bac
feat: add option to turn off PWA (#527) 2022-06-05 00:10:20 +08:00
bibi2233 54124d5134
fix: assets URL is missing `baseurl` in self-hosted mode (#591) 2022-06-02 20:55:34 +08:00
Cotes Chung 6d35f5f8da
perf: avoid the layout shift for post datetime 2022-04-26 04:55:37 +08:00
Zak Kemble 59e955745f fix: spurious header closing tags
`right` already contains the closing tag
2022-04-14 16:50:13 +01:00
Zak Kemble 4f590e2bba fix: p is not allowed in span 2022-04-14 16:50:13 +01:00
Zak Kemble 6900d9f2bc fix: follow paginate_path config for pagination
Using "paginate_path: /page/:num/" to generate "/page/2/" paths would still generate invalid
pagination links to "/page2/"
2022-04-14 16:50:13 +01:00
Zak Kemble 58928dbc90 fix: alt is not a valid attribute for 'a' tag 2022-03-27 18:01:24 +01:00
Cotes Chung 0542b5149c
fix: remove whitespace from avatar URL (#537)
Fix #537
2022-03-22 21:13:39 +08:00
Cotes Chung e68108014a
style: add indentation 2022-03-22 21:13:39 +08:00
Cotes Chung 9cefe58993
fix: when the `site.img_cdn` is set to the local path, the preview-image path loses the `baseurl` 2022-03-16 22:17:19 +08:00
Cotes Chung b8d1bcd3de
fix: resume the preview image SEO tag (#529)
Fix #529
2022-03-16 22:17:19 +08:00
Zak Kemble 4c1c8d8b0e fix: correctly URL encode share links
Relates to #496
2022-03-03 12:55:27 +00:00
Zak Kemble 2103191b2f fix: script code should be in head or body, not in between 2022-03-03 12:54:44 +00:00
Cotes Chung 5d85ccb994
fix: table bypass refactoring when it contains IAL (#519)
Fix #519
2022-03-03 18:05:48 +08:00
Cotes Chung 35e013f7fd Adapt the search input to Bootstrap 4.6 2022-02-14 22:15:38 +08:00
Cotes Chung e52dc9551c Beautify heading style (margin, anchor) 2022-02-14 22:15:38 +08:00
Cotes Chung 0f6b170e24 Use constants to define resources for `utterances`
Self-host the JS for `utterances` is not necessary, because the list of comments cannot be loaded if the network is offline.
2022-02-12 05:47:48 +08:00
Cotes Chung 4df4f7f8db Add Giscus comments support (resolve #501) 2022-02-12 05:47:48 +08:00