fix date display

This commit is contained in:
John Bowdre 2023-09-04 16:45:00 -05:00
parent 3d2e251ef8
commit bef49a3c0d

View file

@ -3,7 +3,7 @@
{{ if or (.Params.description) (.Params.date) }} {{ if or (.Params.description) (.Params.date) }}
{{ if .Params.description }}<p>{{ .Params.description }}</p>{{ end }} {{ if .Params.description }}<p>{{ .Params.description }}</p>{{ end }}
<p> <p>
{{ with $postDate }}<table><tr><td>posted:</td><td>{{ . }}</td></tr>{{- if ne $postDate $updateDate }}<tr><td>updated:</td><td>{{ $updateDate }}</td></tr>{{ end }}</table>{{ end }} {{ if .Params.date }}<table><tr><td>posted:</td><td>{{ $postDate }}</td></tr>{{- if ne $postDate $updateDate }}<tr><td>updated:</td><td>{{ $updateDate }}</td></tr>{{ end }}</table>{{ end }}
</p> </p>
<p> <p>
{{- with .Params.tags -}} {{- with .Params.tags -}}