diff options
author | Byeonggon Lee <gonny952@gmail.com> | 2018-11-28 16:12:10 +0300 |
---|---|---|
committer | Byeonggon Lee <gonny952@gmail.com> | 2018-11-28 16:12:10 +0300 |
commit | a48b4f081a32108b7cd24adf90e8c7203b3ae2dc (patch) | |
tree | 67f77015f25c806b4fe7f798c36638f0e26e52a3 /layouts | |
parent | 298f23c4335b165d7c41c659f5e9d9359a21bc3f (diff) |
Add disqus support
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.html | 13 |
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 }} |