diff options
author | Dave Kerr <dwmkerr@gmail.com> | 2020-06-11 11:07:22 +0300 |
---|---|---|
committer | Dave Kerr <dwmkerr@gmail.com> | 2020-06-18 08:15:07 +0300 |
commit | 1dfa6426bee137c4ae9d0aa993c31cc72da05299 (patch) | |
tree | 6d3e3177196f480fbc75a39f14287d9727a2630c /layouts/_default/single.html | |
parent | d12aafb104cca1cc4614875842968ea1c59f5173 (diff) |
feat: add 'hideDate' parameter to hide the date
This closes issue #71.
Diffstat (limited to 'layouts/_default/single.html')
-rwxr-xr-x | layouts/_default/single.html | 8 |
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 }} |