further improve aside <hr> logic

This commit is contained in:
John Bowdre 2023-08-23 17:02:19 -05:00
parent bca53dbd8a
commit b284940cfe

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