Skip to content

Commit 69f3404

Browse files
committed
use giscus
1 parent 4c60580 commit 69f3404

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

layouts/partials/footer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<footer class="family-secondary support content">
2+
{{ partial "posts/giscus.html" . }}
23
<p class="pb-2">
34
Hi! If you made it this far, maybe you want to stay in touch. You can follow me on <a
45
href="https://twitter.com/sumitsingh4613">Twitter</a>, subscribe via <a href="/index.xml">Atom/RSS</a>.

layouts/partials/giscus.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{{- if isset .Site.Params "giscus" -}}
2+
{{- if and (isset .Site.Params.giscus "repo") (not (eq .Site.Params.giscus.repo "" )) (eq (.Params.disable_comments | default false) false) -}}
3+
<script src="https://giscus.app/client.js"
4+
data-repo="sumit4613/sumit4613.github.io"
5+
data-repo-id="MDEwOlJlcG9zaXRvcnkxNzg0NTk0MDg="
6+
data-category="General"
7+
data-category-id="DIC_kwDOCqMTEM4CplMO"
8+
data-mapping="pathname"
9+
data-strict="0"
10+
data-reactions-enabled="1"
11+
data-emit-metadata="0"
12+
data-input-position="top"
13+
data-theme="preferred_color_scheme"
14+
data-lang="en"
15+
data-loading="lazy"
16+
crossorigin="anonymous"
17+
async>
18+
</script>
19+
{{- end -}}
20+
{{- end -}}

0 commit comments

Comments
 (0)