summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorAdam Olech <nddr89@gmail.com>2021-11-10 00:41:34 +0100
committerAdam Olech <nddr89@gmail.com>2021-11-10 00:41:34 +0100
commit30ef397e7e41342e2b0f76c60ac444ee970b666f (patch)
treed30828f98558d94a45b5f97bf9ef72cbf5a5c1ba /layouts
parent31d15b2695000130c789c9abe29ecfdb2383a47b (diff)
single.html: show date only on blog posts
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 3d46668..10e18b3 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -3,7 +3,7 @@
<h1 class="title">{{ .Title }}</h1>
{{ with .Params.tagline }}<span class="tagline">{{ . }}</span>{{ end }}
- {{ if ne .Type "page" -}}
+ {{ if eq .Type "post" -}}
<div class="post-date">
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> <span class="readtime">&middot; {{ .ReadingTime }} min read</span>
</div>