1
0
Fork 0

Merge pull request #103 from nilsramsperger/main

Date is hidden when none is provided
This commit is contained in:
南小北 2022-02-14 00:08:53 +08:00 committed by GitHub
commit a55bfe76d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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