diff --git a/layouts/partials/posts/utteranc.html b/layouts/partials/posts/utteranc.html deleted file mode 100644 index 91184e1..0000000 --- a/layouts/partials/posts/utteranc.html +++ /dev/null @@ -1,11 +0,0 @@ -{{- if isset .Site.Params "utteranc" -}} - {{- if and (isset .Site.Params.utteranc "repo") (not (eq .Site.Params.utteranc.repo "" )) (eq (.Params.disable_comments | default false) false) -}} - - {{- end -}} -{{- end -}} diff --git a/layouts/partials/posts/utterances.html b/layouts/partials/posts/utterances.html new file mode 100644 index 0000000..9e40a43 --- /dev/null +++ b/layouts/partials/posts/utterances.html @@ -0,0 +1,11 @@ +{{- if isset .Site.Params "utterances" -}} + {{- if and (isset .Site.Params.utterances "repo") (not (eq .Site.Params.utterances.repo "" )) (eq (.Params.disable_comments | default false) false) -}} + + {{- end -}} +{{- end -}} diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 1e7d064..63e88d9 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -38,7 +38,7 @@ {{ partial "posts/series.html" . }} {{ partial "posts/disqus.html" . }} {{ partial "posts/commento.html" . }} - {{ partial "posts/utteranc.html" . }} + {{ partial "posts/utterances.html" . }}