display page metadata only if content type 'posts'

This commit is contained in:
Robert Kaussow 2020-09-07 21:09:21 +02:00
parent e1ef957164
commit 121cb89363
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@
{{ end }}
<h1>{{ partial "title" . }}</h1>
{{ if eq .Type "posts" }}
<div class="gblog-post__meta">
<span class="no-wrap">
<svg class="icon date"><use xlink:href="#date"></use></svg>
@ -34,6 +35,7 @@
<span class="gblog-post__tag">{{ .ReadingTime }} min read</span>
</span>
</div>
{{ end }}
</header>
<section class="gblog-markdown">