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:06:32 +0300
commit4c337aaa1186794b77868e5aad8c922bfdc321c5 (patch)
treeea72aca1d4d049586fb54e1ecd2c7eb38efb2758
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..b2d0226 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>