Merge pull request #103 from nilsramsperger/main
Date is hidden when none is provided
This commit is contained in:
commit
a55bfe76d4
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