Condense post list

This commit is contained in:
Dave Gallant
2024-04-07 22:10:00 -04:00
parent 8d898eb69a
commit 3bf6014537
3 changed files with 8 additions and 5 deletions

View File

@@ -1,8 +1,11 @@
{{ range $pageIndex, $page := .Pages }}
<article class="post">
<div class="post-header">
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
{{ partial "post-meta.html" (dict "page" . "pageIndex" $pageIndex) }}
<div class="post-meta">
{{- with $page.Date -}}
<span>{{ .Format "2006-01-02" }}</span>
{{- end -}}: <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
</div>
</div>
</article>
{{ end }}