diff options
author | Jeremy Olexa <jolexa@jolexa.net> | 2015-12-27 04:10:58 +0300 |
---|---|---|
committer | Jeremy Olexa <jolexa@jolexa.net> | 2015-12-27 04:10:58 +0300 |
commit | 25cd88f15fefe6e0bcf5694e70af609a0f54d2a2 (patch) | |
tree | 4bf3d6134dd7e17efc59ae2b9e067d4a0344817b | |
parent | 890e97c5a052984d04294862ac60c7e0bfc6a934 (diff) |
Add support for not showing a date
-rw-r--r-- | layouts/_default/single.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 5dbe531..4e4c920 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,12 +4,15 @@ <header> <h1 class="text-primary">{{ .Title }}</h1> <div class="post-meta clearfix"> + {{ if (isset .Params "noshowdate") }} + {{ else }} <div class="post-date pull-left"> Posted on <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}"> {{ .Date.Format "Jan 2, 2006" }} </time> </div> + {{ end }} <div class="pull-right"> {{ range .Params.tags }} <span class="post-tag small"><a href="{{ $baseurl }}/tags/{{ . | urlize }}">#{{ . }}</a></span> |