From 7ed7d3c51eacf760bba8ed4f67994d0c97c1108a Mon Sep 17 00:00:00 2001 From: Naim A <227396+naim94a@users.noreply.github.com> Date: Sun, 21 Jul 2019 17:22:25 +0300 Subject: [PATCH] disqus: fixed issue #199 (#200) --- CONTRIBUTORS.md | 1 + layouts/partials/posts/disqus.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 39071f4..bae54bc 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -40,3 +40,4 @@ - [Łukasz Mróz](https://github.com/mrozlukasz) - [Jia "Jay" Tan](https://github.com/j7an) - [Ryan](https://github.com/alrayyes) +- [Naim A.](https://github.com/naim94a) diff --git a/layouts/partials/posts/disqus.html b/layouts/partials/posts/disqus.html index c7471dd..1991af1 100644 --- a/layouts/partials/posts/disqus.html +++ b/layouts/partials/posts/disqus.html @@ -1,3 +1,3 @@ -{{- if and (isset .Site "disqusshortname") (not (eq .Site.DisqusShortname "" )) (eq (.Params.disable_comments | default false) false) -}} +{{- if and (not (eq (.Site.DisqusShortname | default "") "")) (eq (.Params.disable_comments | default false) false) -}} {{ template "_internal/disqus.html" . }} {{- end -}}