diff options
author | Bhavin Gandhi <bhavin7392@gmail.com> | 2018-10-15 21:25:40 +0300 |
---|---|---|
committer | Bhavin Gandhi <bhavin7392@gmail.com> | 2020-03-28 21:06:36 +0300 |
commit | 1eaec964dfbd250d7e0c98fc6f06ecee43d95aeb (patch) | |
tree | 2301e643cca65fe4073c593332e471875eb4e8e0 | |
parent | afec613fd6f0c14a80bdc6696810985eac11d740 (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.html | 5 |
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" . }} |