diff options
author | Byeonggon Lee <gonny952@gmail.com> | 2020-03-08 13:04:31 +0300 |
---|---|---|
committer | Byeonggon Lee <gonny952@gmail.com> | 2020-03-08 13:04:42 +0300 |
commit | 083b5467618a9181486bb9cbb86b70a3eb62b760 (patch) | |
tree | 945f0081d1276dbae9ec1e1d069fc6c84eaff029 | |
parent | fcb4ec848734447a4de6c7db25608c21154bee4c (diff) |
Fix a bug
-rw-r--r-- | archetypes/default.md | 14 | ||||
-rw-r--r-- | 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 -}} </div> |