Skip to content

Commit 49de856

Browse files
committed
feat: Add giscus
1 parent 39b0add commit 49de856

3 files changed

Lines changed: 31 additions & 0 deletions

File tree

giscus.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"origins": [
3+
"https://chebread.github.io"
4+
],
5+
"originsRegex": [
6+
"http://devd.io:[0-9]+"
7+
],
8+
"defaultCommentOrder": "newest"
9+
}

layout/post.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,24 @@ <h1 class="post-title">{{- .Title -}}</h1>
7979
{{- .Content -}}
8080
</article>
8181
</div>
82+
<section class="post-comments">
83+
<script src="https://giscus.app/client.js"
84+
data-repo="chebread/chebread.github.io"
85+
data-repo-id="R_kgDOP0JptQ"
86+
data-category="Announcements"
87+
data-category-id="DIC_kwDOP0Jptc4CwG8I"
88+
data-mapping="title"
89+
data-strict="0"
90+
data-reactions-enabled="1"
91+
data-emit-metadata="0"
92+
data-input-position="top"
93+
data-theme="light"
94+
data-lang="ko"
95+
data-loading="lazy"
96+
crossorigin="anonymous"
97+
async>
98+
</script>
99+
</section>
82100
</main>
83101

84102
<footer class="post-footer">

layout/styles/post.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@
7474
}
7575
}
7676

77+
.post-comments {
78+
padding: 5rem 0 0 0;
79+
}
80+
7781
.post-footer {
7882
padding: 3rem 0 3rem 0;
7983
section {

0 commit comments

Comments
 (0)