]> Untitled Git - bitcoindevkit.org/commitdiff
Add a comment section to the blog
authorAlekos Filini <alekos.filini@gmail.com>
Thu, 19 Nov 2020 17:43:43 +0000 (18:43 +0100)
committerAlekos Filini <alekos.filini@gmail.com>
Thu, 19 Nov 2020 17:43:43 +0000 (18:43 +0100)
layouts/partials/custom-comments.html [new file with mode: 0644]

diff --git a/layouts/partials/custom-comments.html b/layouts/partials/custom-comments.html
new file mode 100644 (file)
index 0000000..defeba7
--- /dev/null
@@ -0,0 +1,12 @@
+{{ if and (eq .Type "blog") (ne .Kind "section" ) }}
+
+<script src="https://utteranc.es/client.js"
+        repo="bitcoindevkit/blog-comments"
+        issue-term="pathname"
+        label="blog-comment"
+        theme="github-light"
+        crossorigin="anonymous"
+        async>
+</script>
+
+{{ end }}