Skip to content

Commit 40c5a26

Browse files
committed
use giscus
1 parent 69f3404 commit 40c5a26

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

layouts/partials/footer.html

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

layouts/partials/giscus.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
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) -}}
31
<script src="https://giscus.app/client.js"
42
data-repo="sumit4613/sumit4613.github.io"
53
data-repo-id="MDEwOlJlcG9zaXRvcnkxNzg0NTk0MDg="
@@ -15,6 +13,4 @@
1513
data-loading="lazy"
1614
crossorigin="anonymous"
1715
async>
18-
</script>
19-
{{- end -}}
20-
{{- end -}}
16+
</script>

0 commit comments

Comments
 (0)