diff options
author | Byeonggon Lee <gonny952@gmail.com> | 2020-03-08 13:35:34 +0300 |
---|---|---|
committer | Byeonggon Lee <gonny952@gmail.com> | 2020-03-08 13:35:34 +0300 |
commit | 35cb432743382c4df5c406de8132a2786f954aac (patch) | |
tree | 3c78c10f1a416d7bb3276bee923d1c0822efef23 | |
parent | ddf60b8586f84a0996330162963e5d068b348961 (diff) |
Fix disqus bug
-rw-r--r-- | layouts/_default/single.html | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index b2d0226..0532d6d 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -6,10 +6,8 @@ {{- end -}} {{- .Content -}} {{- if not (eq .Site.DisqusShortname "") -}} - {{- if and (isset .Params "enabledisqus") (not .Params.full) -}} - {{- if .Params.enableDisqus -}} - {{- template "_internal/disqus.html" . -}} - {{- end -}} + {{- if and (eq (.Params.enableDisqus | default false) true) (not (eq (.Params.full | default true) false)) -}} + {{- template "_internal/disqus.html" . -}} {{- end -}} {{- end -}} </div> |