Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alexandrevicenzi/soho.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Vicenzi <vicenzi.alexandre@gmail.com>2020-06-15 23:08:36 +0300
committerAlexandre Vicenzi <vicenzi.alexandre@gmail.com>2020-06-15 23:08:36 +0300
commitcd5751ef1425db3ed7e46fcaa7fafe53e494c286 (patch)
tree2ddc1c44c00859638dfd0528009ccbe12560fe01
parent33bd6cadcf20036da93e26e3347c817c44dc3173 (diff)
Fix comments validation
-rw-r--r--archetypes/default.md8
-rw-r--r--layouts/_default/single.html2
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 }}
</div>
-{{ if (and .Site.DisqusShortname (eq .Params.DisableComments false)) -}}
+{{ if (and .Site.DisqusShortname (ne .Params.DisableComments true) (ne .Params.disable_comments true)) -}}
<h2>Comments</h2>
{{ template "_internal/disqus.html" . }}
{{- end }}