Skip to content

Commit f05a846

Browse files
committed
feat: comments for blog posts
1 parent 79bba3e commit f05a846

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

content/posts/_index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
---
22
cardView: false
3+
4+
cascade:
5+
showComments: true
6+
invertPagination: true
37
---

layouts/partials/comments.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<script src="https://giscus.app/client.js" data-repo="jhrcook/jhrcook-website" data-repo-id="R_kgDOLQ6jwQ"
2+
data-category="Announcements" data-category-id="DIC_kwDOLQ6jwc4CdJHO" data-mapping="url" data-strict="0"
3+
data-reactions-enabled="1" data-emit-metadata="0" data-input-position="top" data-theme="dark_dimmed" data-lang="en"
4+
data-loading="lazy" crossorigin="anonymous" async>
5+
</script>
6+
7+
<!-- TODO: Would be nice if the theme switched according to the light or dark appearance of the website. Too complicated for me, but this Issue is working on the implementation. <https://github.com/giscus/giscus/issues/1200>
8+
-->

0 commit comments

Comments
 (0)