From 89c14e2dae9d10a13378815c9c51fb7c5f6d6323 Mon Sep 17 00:00:00 2001 From: JP Hastings-Spital Date: Mon, 20 Jan 2025 21:10:24 +0000 Subject: [PATCH] Fix homepage photo caption --- layouts/partials/post-previews.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/post-previews.html b/layouts/partials/post-previews.html index eedc93c0..72d48d9d 100644 --- a/layouts/partials/post-previews.html +++ b/layouts/partials/post-previews.html @@ -50,8 +50,8 @@ {{- $src := index $picPage.Params.Media 0 -}}
- {{- $shortSummary := index (split .Summary "\n") 0 -}} - {{- $shortSummary | htmlUnescape }}{{ if gt (len .Summary) (len $shortSummary) }} {{ end -}} + {{- $shortSummary := index (split .Summary "

") 0 -}} + {{- $shortSummary | plainify | htmlUnescape | strings.TrimSpace }}