From 083b5467618a9181486bb9cbb86b70a3eb62b760 Mon Sep 17 00:00:00 2001 From: Byeonggon Lee Date: Sun, 8 Mar 2020 19:04:31 +0900 Subject: Fix a bug --- archetypes/default.md | 14 +++++++------- layouts/_default/single.html | 6 +----- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/archetypes/default.md b/archetypes/default.md index 997c90c..c456f81 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,8 +1,8 @@ -+++ -title = "no title" -showTitle = true +--- +title: "no title" +showTitle: true date = {{ .Date }} -enableDisqus = true -full = false -img = "" -+++ +enableDisqus: true +full: false +img: "" +--- diff --git a/layouts/_default/single.html b/layouts/_default/single.html index be4a56f..d3f8cee 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -6,14 +6,10 @@ {{- end -}} {{- .Content -}} {{- if not (eq .Site.DisqusShortname "") -}} - {{- if isset .Params "enableDisqus" -}} + {{- if and (isset .Params "enabledisqus") not .Params.full -}} {{- if .Params.enableDisqus -}} {{- template "_internal/disqus.html" . -}} {{- end -}} - {{- else -}} - {{- if not .Params.full -}} - {{- template "_internal/disqus.html" . -}} - {{- end -}} {{- end -}} {{- end -}} -- cgit v1.2.3