Skip to content

Commit

Permalink
display page metadata only if content type 'posts'
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys committed Sep 7, 2020
1 parent e1ef957 commit 121cb89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -34,6 +35,7 @@ <h1>{{ partial "title" . }}</h1>
<span class="gblog-post__tag">{{ .ReadingTime }} min read</span>
</span>
</div>
{{ end }}
</header>

<section class="gblog-markdown">
Expand Down

0 comments on commit 121cb89

Please sign in to comment.