asside: remove author and related logic, replace date with lastmod, tweak formatting

This commit is contained in:
David Thurstenson 2022-01-05 17:22:53 -06:00
parent cbb2777114
commit ca98192cfb
1 changed files with 3 additions and 6 deletions

View File

@ -1,9 +1,6 @@
{{define "aside" }}
{{ if .Params.description }}<p>{{ .Params.description }}</p>{{ end }}
{{ if or (.Params.author) (.Params.date) }}
<p>
{{ if .Params.author }}By {{ .Params.author }}{{ if .Date }}, {{ end }}{{ end }}
{{ if .Date }}{{ .Date.Format "2006-01-02" }}{{ end }}
{{ if .Lastmod }}Last Modified: {{ .Lastmod.Format "2006-01-02" }}{{ end }}
</p>
{{ end }}
{{ end }}