blog

My blog at www.shimmy1996.com

git clone git://git.shimmy1996.com/blog.git
commit f492480eb2125a19f3413e3db85abb11cb98cccd
parent 7c5298fbe9e60910adf39f6450af9d9c1e7878b0
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Tue, 24 Oct 2017 23:28:18 -0500

Do not show comments in home page.

Diffstat:
Mlayouts/partials/foot_custom.html | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/layouts/partials/foot_custom.html b/layouts/partials/foot_custom.html
@@ -1,7 +1,8 @@
 <!-- MathJax Support -->
 <script src="/js/math-code.js"></script>
 <script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML"></script>
-<!-- Isso Support -->
+<!-- Isso support, do not enable in home page. -->
+{{if not .IsHome}}
 <script data-isso="/isso/"
         data-isso-css="true"
         data-isso-lang={{ .Site.Language }}
@@ -17,6 +18,7 @@
         data-vote-levels=""
         src="/isso/js/embed.min.js"></script>
 <section id="isso-thread"></section>
+{{ end }}
 
 <!-- Translated footer -->
 {{ with i18n "footer" }}