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

github.com/mdashx/basicwebtheme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/_default/single.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index f838367..714432b 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,11 +1,15 @@
{{ define "main" }}
+{{ $showdate := true }}
+
+{{ if isset $.Site.Params "showdate" }}{{ $showdate = $.Site.Params.showdate }}{{ end }}
+
{{ with .Param "skipTitle" }}
{{ else }}
<h2>{{ $.Title }}</h2>
{{ end }}
-{{ if .PublishDate }}
+{{ if (and .PublishDate $showdate )}}
<em>{{ .PublishDate.Format "January 2, 2006" }}</em>
{{ end }}