diff --git a/layouts/partials/posts/commento.html b/layouts/partials/posts/commento.html index 4889dc8..936f3bd 100644 --- a/layouts/partials/posts/commento.html +++ b/layouts/partials/posts/commento.html @@ -1,4 +1,4 @@ -{{- if and (not (eq .Site.Params.commentoUrl "" )) (eq (.Params.disable_comments | default false) false) -}} +{{- if and (isset .Site.Params "commentourl") (not (eq .Site.Params.commentoUrl "" )) (eq (.Params.disable_comments | default false) false) -}}
{{- end -}} diff --git a/layouts/partials/posts/disqus.html b/layouts/partials/posts/disqus.html index 2f1e5b4..c7471dd 100644 --- a/layouts/partials/posts/disqus.html +++ b/layouts/partials/posts/disqus.html @@ -1,3 +1,3 @@ -{{- if and (not (eq .Site.DisqusShortname "" )) (eq (.Params.disable_comments | default false) false) -}} +{{- if and (isset .Site "disqusshortname") (not (eq .Site.DisqusShortname "" )) (eq (.Params.disable_comments | default false) false) -}} {{ template "_internal/disqus.html" . }} {{- end -}}