mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-22 05:00:39 +00:00
display page metadata only if content type 'posts'
This commit is contained in:
parent
e1ef957164
commit
121cb89363
@ -16,6 +16,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<h1>{{ partial "title" . }}</h1>
|
<h1>{{ partial "title" . }}</h1>
|
||||||
|
{{ if eq .Type "posts" }}
|
||||||
<div class="gblog-post__meta">
|
<div class="gblog-post__meta">
|
||||||
<span class="no-wrap">
|
<span class="no-wrap">
|
||||||
<svg class="icon date"><use xlink:href="#date"></use></svg>
|
<svg class="icon date"><use xlink:href="#date"></use></svg>
|
||||||
@ -34,6 +35,7 @@
|
|||||||
<span class="gblog-post__tag">{{ .ReadingTime }} min read</span>
|
<span class="gblog-post__tag">{{ .ReadingTime }} min read</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
{{ end }}
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<section class="gblog-markdown">
|
<section class="gblog-markdown">
|
||||||
|
Loading…
Reference in New Issue
Block a user