1
0
Fork 0

Date is hidden when none is provided

This commit is contained in:
Nils Ramsperger 2022-02-12 20:01:09 +01:00
parent 7163749d25
commit d731827930

View file

@ -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 }}