diff options
| author | Adam Olech <nddr89@gmail.com> | 2021-11-10 00:41:34 +0100 |
|---|---|---|
| committer | Adam Olech <nddr89@gmail.com> | 2021-11-10 00:41:34 +0100 |
| commit | 30ef397e7e41342e2b0f76c60ac444ee970b666f (patch) | |
| tree | d30828f98558d94a45b5f97bf9ef72cbf5a5c1ba /layouts/_default/single.html | |
| parent | 31d15b2695000130c789c9abe29ecfdb2383a47b (diff) | |
single.html: show date only on blog posts
Diffstat (limited to 'layouts/_default/single.html')
| -rw-r--r-- | layouts/_default/single.html | 2 |
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">· {{ .ReadingTime }} min read</span> </div> |
