From cd5751ef1425db3ed7e46fcaa7fafe53e494c286 Mon Sep 17 00:00:00 2001 From: Alexandre Vicenzi Date: Mon, 15 Jun 2020 22:08:36 +0200 Subject: [PATCH] Fix comments validation --- archetypes/default.md | 8 ++++---- layouts/_default/single.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/archetypes/default.md b/archetypes/default.md index 74583a2..e387f17 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,6 +1,6 @@ +++ -Description = "" -Tags = ["Development", "golang"] -Categories = ["Development", "GoLang"] -menu = "main" +description = "" +tags = ["Development", "golang"] +categories = ["Development", "GoLang"] +draft = false +++ diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 80217af..611a77f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -11,7 +11,7 @@ {{ .Content }} -{{ if (and .Site.DisqusShortname (eq .Params.DisableComments false)) -}} +{{ if (and .Site.DisqusShortname (ne .Params.DisableComments true) (ne .Params.disable_comments true)) -}}

Comments

{{ template "_internal/disqus.html" . }} {{- end }}