Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/tummychow/lanyon-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBhavin Gandhi <bhavin7392@gmail.com>2018-10-15 21:25:40 +0300
committerBhavin Gandhi <bhavin7392@gmail.com>2020-03-28 21:06:36 +0300
commit1eaec964dfbd250d7e0c98fc6f06ecee43d95aeb (patch)
tree2301e643cca65fe4073c593332e471875eb4e8e0
parentafec613fd6f0c14a80bdc6696810985eac11d740 (diff)
Add Disqus support
- Uses inbuit template of HUGO for Disqus Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com>
-rw-r--r--layouts/_default/single.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 81fab20..deecd9c 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -4,6 +4,11 @@
<h1 class="post-title">{{ .Title }}</h1>
<span class="post-date">{{ .Site.Params.DateForm | default "Jan 2, 2006" | .Date.Format }}</span>
{{ .Content }}
+ {{- if .Site.DisqusShortname -}}
+ <hr>
+ <h2>Comments</h2>
+ {{ template "_internal/disqus.html" . }}
+ {{ end -}}
</div>
{{ partial "default_foot.html" . }}