mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-21 20:50:40 +00:00
display page metadata only if content type 'posts'
This commit is contained in:
parent
e1ef957164
commit
121cb89363
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user