Commit Graph

14 Commits

Author SHA1 Message Date
Cotes Chung e9c920641b
perf(comments): lazy load `giscus` (#1254)
Enable the `giscus` lazy loading option to improve web performance.
2023-09-20 05:48:14 +08:00
Cotes Chung 13a3c3c906
perf(layout): improve margins for tail block (#1243)
Keeps the margin of the elements in the tail area consistent regardless of the number of siblings, or if a <script> is inserted.
2023-09-18 03:26:02 +08:00
Cotes Chung b34661efd7
fix: avoid `utterances` initialization failure (#1234)
This issue exists since Chirpy `v6.0.0`
2023-09-15 01:24:13 +08:00
Cotes Chung bb589e8d31
style: prettify `utteranc` code snippet 2023-09-15 01:13:20 +08:00
Cotes Chung 505e314a31
perf: refactor using semantic HTML (#1207)
Fixes #1196
2023-09-08 22:48:37 +08:00
Cotes Chung 9d97120197
perf(assets): reduce HTTP requests to CDN 2023-05-13 03:29:06 +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 b0d5956f5a
fix(comment): disqus doesn't follow theme mode switching 2022-11-22 19:05:19 +08:00
Petr Ruzicka 70662a0365
chore(giscus): add `reactions-enabled` option (#712) 2022-10-15 04:31:44 +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
Cotes Chung 3685685b28 Make the source of the static assets configurable
- Easy to switch between different CDN
- Allow self-host static assets
2022-02-10 04:12:35 +08:00
Cotes Chung f8f4dd889e Normalized attribute name in HTML
Add prefix `data-` for following attributes:
- `topbar-visible`
- `mode`
- `label-text`
- `title-succeed`
2022-01-13 00:23:08 +08:00
Cotes Chung d315bf57e7 Integrate utterances comments 2021-12-13 04:40:05 +08:00