Date is hidden when none is provided
This commit is contained in:
parent
7163749d25
commit
d731827930
1 changed files with 2 additions and 0 deletions
|
@ -3,7 +3,9 @@
|
||||||
<article class="post-single">
|
<article class="post-single">
|
||||||
<header class="post-title">
|
<header class="post-title">
|
||||||
<p>
|
<p>
|
||||||
|
{{ if .Date }}
|
||||||
<time>{{ .Date | time.Format ":date_medium" }}</time>
|
<time>{{ .Date | time.Format ":date_medium" }}</time>
|
||||||
|
{{ end }}
|
||||||
{{ if or .Params.Author site.Author.name }}
|
{{ if or .Params.Author site.Author.name }}
|
||||||
<span>{{ .Params.Author | default site.Author.name }}</span>
|
<span>{{ .Params.Author | default site.Author.name }}</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue