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

github.com/keichi/vienna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Olexa <jolexa@jolexa.net>2015-12-27 04:10:58 +0300
committerJeremy Olexa <jolexa@jolexa.net>2015-12-27 04:10:58 +0300
commit25cd88f15fefe6e0bcf5694e70af609a0f54d2a2 (patch)
tree4bf3d6134dd7e17efc59ae2b9e067d4a0344817b
parent890e97c5a052984d04294862ac60c7e0bfc6a934 (diff)
Add support for not showing a date
-rw-r--r--layouts/_default/single.html3
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>