blog

My blog at www.shimmy1996.com

git clone git://git.shimmy1996.com/blog.git
commit 34b63ada1101d88c23515195870f3fe895e588f6
parent b59a9e12399bd46253d9e456d599970ca312514a
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Mon,  2 Dec 2019 10:14:51 -0500

Add back isso comments

Diffstat:
Alayouts/_default/single.html | 5+++++
Alayouts/partials/comment.html | 19+++++++++++++++++++
2 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
@@ -0,0 +1,5 @@
+{{ define "main" }}
+<header><h1>{{ .Title }}</h1></header>
+<article>{{ .Content }}</article>
+{{ partial "comment.html" . }}
+{{ end }}
diff --git a/layouts/partials/comment.html b/layouts/partials/comment.html
@@ -0,0 +1,19 @@
+<hr/>
+<script
+  async
+  data-isso="/isso/"
+  data-isso-lang={{ .Site.Language }}
+  data-isso-reply-to-self="false"
+  data-isso-require-author="true"
+  data-isso-require-email="true"
+  data-isso-max-comments-top="10"
+  data-isso-max-comments-nested="5"
+  data-isso-reveal-on-click="5"
+  data-isso-avatar="true"
+  data-isso-avatar-bg="#ffffff"
+  data-isso-avatar-fg="#700000"
+  data-isso-vote="false"
+  data-isso-feed="true"
+  data-vote-levels=""
+  src="/isso/js/embed.min.js"></script>
+<section id="isso-thread"></section>