further improve aside <hr> logic

This commit is contained in:
John Bowdre 2023-08-23 17:02:19 -05:00
parent c83227d2a4
commit 1296a7e9c1

View file

@ -1,5 +1,5 @@
{{ if .Params.description }}<p>{{ .Params.description }}</p>{{ end }}
{{ if or (.Params.author) (.Params.date) }}
{{ if or (.Params.description) (.Params.author) (.Params.date) }}
{{ if .Params.description }}<p>{{ .Params.description }}</p>{{ end }}
<p>
{{ if .Params.author }}By {{ .Params.author }}{{ if .Date }}, {{ end }}{{ end }}
{{ if .Date }}{{ .Date.Format "2006-01-02" }}{{ end }}