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
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61

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">