display post descriptions (if set) on archive pages, otherwise summaries

This commit is contained in:
John Bowdre 2024-05-29 15:06:16 -05:00
parent 110fb888e9
commit 7dd1259a14
2 changed files with 6 additions and 3 deletions

View file

@ -1,13 +1,16 @@
---
title: "/changelog"
date: "2024-05-26T21:19:08Z"
lastmod: "2024-05-28"
lastmod: "2024-05-29"
description: "Maybe I should keep a log of all my site-related tinkering?"
featured: false
toc: false
timeless: true
---
High-level list of config/layout changes to the site:
*High-level list of config/layout changes to the site:*
**2024-05-29:**
- Display post descriptions (if set) on archive pages; otherwise fall back to summaries
**2024-05-27:**
- Replace "powered by" links with slashpages

View file

@ -54,7 +54,7 @@
</p>
</header>
<section class="post__summary">
{{ .Summary }}
{{if .Description }}{{ .Description }}{{ else }}{{ .Summary }}{{ end }}
</section>
<hr>
</article>