format dates as array

This commit is contained in:
John Bowdre 2023-08-29 14:48:57 -05:00
parent cb211a8d76
commit fc8a6b204f

View file

@ -18,7 +18,7 @@
<header class="post__header"> <header class="post__header">
<h1><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1> <h1><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<p class="post__meta"> <p class="post__meta">
<span class="date">[{{- $postDate }}{{- if ne $postDate $updateDate }} ... {{ $updateDate }}{{ end }}]</span> <span class="date">["{{- $postDate }}"{{- if ne $postDate $updateDate }}, "{{ $updateDate }}"{{ end }}]</span>
</p> </p>
</header> </header>