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">
|
||||
<header class="post-title">
|
||||
<p>
|
||||
{{ if .Date }}
|
||||
<time>{{ .Date | time.Format ":date_medium" }}</time>
|
||||
{{ end }}
|
||||
{{ if or .Params.Author site.Author.name }}
|
||||
<span>{{ .Params.Author | default site.Author.name }}</span>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue