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

github.com/gonnux/hugo-apps-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByeonggon Lee <gonny952@gmail.com>2018-11-28 16:12:10 +0300
committerByeonggon Lee <gonny952@gmail.com>2018-11-28 16:12:10 +0300
commita48b4f081a32108b7cd24adf90e8c7203b3ae2dc (patch)
tree67f77015f25c806b4fe7f798c36638f0e26e52a3 /layouts
parent298f23c4335b165d7c41c659f5e9d9359a21bc3f (diff)
Add disqus support
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html13
1 files changed, 12 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 0bca926..9c73571 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,5 +1,16 @@
{{ define "main" }}
<div class="apps-content">
- {{ .Content }}
+ {{- .Content -}}
+ {{- if not (eq .Site.DisqusShortname "") -}}
+ {{- if isset .Params "enable_disqus" -}}
+ {{- if eq .Params.enable_disqus true -}}
+ {{- template "_internal/disqus.html" . -}}
+ {{- end -}}
+ {{- else -}}
+ {{- if not .Params.full -}}
+ {{- template "_internal/disqus.html" . -}}
+ {{- end -}}
+ {{- end -}}
+ {{- end -}}
</div>
{{ end }}