properly format metadata and previous and next pages

This commit is contained in:
Peter 2025-03-19 13:19:37 -04:00
parent 94d498f0e1
commit b31611af40
4 changed files with 32 additions and 17 deletions

View file

@ -25,7 +25,7 @@
<!-- [html-validate-disable-next prefer-native-element] -->
<div class="postListItem" role="listitem">
<div class="postHeader">
<span class="postTitle">{{ .Title }}</span>
<span class="postTitle">{{ .Title }}</span></a>
{{ $formattedDate := .Date.Format "2006-01-02" }}
<time class="postDate" datetime="{{ $formattedDate }}">{{ .Date | time.Format ":date_long" }}</time>
</div>
@ -33,7 +33,7 @@
<p>{{ .Summary }}</p>
</div>
</div>
</a>
{{ range .Pages.ByWeight }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ end }}