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

github.com/gonnux/hugo-apps-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByeonggon Lee <gonny952@gmail.com>2020-03-08 13:04:31 +0300
committerByeonggon Lee <gonny952@gmail.com>2020-03-08 13:04:42 +0300
commit083b5467618a9181486bb9cbb86b70a3eb62b760 (patch)
tree945f0081d1276dbae9ec1e1d069fc6c84eaff029
parentfcb4ec848734447a4de6c7db25608c21154bee4c (diff)
Fix a bug
-rw-r--r--archetypes/default.md14
-rw-r--r--layouts/_default/single.html6
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>