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

github.com/mismith0227/hugo_theme_pickles.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Kerr <dwmkerr@gmail.com>2020-06-11 11:07:22 +0300
committerDave Kerr <dwmkerr@gmail.com>2020-06-18 08:15:07 +0300
commit1dfa6426bee137c4ae9d0aa993c31cc72da05299 (patch)
tree6d3e3177196f480fbc75a39f14287d9727a2630c /layouts/_default/single.html
parentd12aafb104cca1cc4614875842968ea1c59f5173 (diff)
feat: add 'hideDate' parameter to hide the date
This closes issue #71.
Diffstat (limited to 'layouts/_default/single.html')
-rwxr-xr-xlayouts/_default/single.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 1a53fc9..6456e63 100755
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -4,9 +4,11 @@
<header>
<h1>{{ .Title }}</h1>
<div>
- <div class="c-time">
- {{ partial "timestamp.html" . }}
- </div>
+ {{ if not .Params.hideDate }}
+ <div class="c-time">
+ {{ partial "timestamp.html" . }}
+ </div>
+ {{ end }}
{{ range .Params.tags }}
<a href="{{ $baseurl }}/tags/{{ . | urlize }}" class="c-tag">{{ . }}</a>
{{ end }}