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 -}}