Simplify posts list

This commit is contained in:
Dave Gallant
2024-03-31 12:35:51 -04:00
parent 37a27723f9
commit 5d87003de0
3 changed files with 4 additions and 38 deletions

View File

@@ -1,24 +1,12 @@
{{ range $pageIndex, $page := .Pages }}
<article class="post">
<div class="post-header">
<h2>
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
</h2>
{{ partial "post-meta.html" (dict "page" . "pageIndex" $pageIndex) }}
</div>
<div class="post-content">
{{ with .Description }}
{{ . }}
{{ else }}
{{ .Summary }}
{{ if .Truncated }}
<div class="post-content__read-more">
<a href="{{ .RelPermalink }}">Read more &gt;</a>
</div>
{{ end }}
{{ end }}
</div>
</article>
{{ end }}