From 16655c00e0a84f6bfe58870c918fbfc016fe58ec Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 30 Jun 2025 15:35:25 +0200 Subject: Fix hugo layout in hugo > ~0.130.0 For some reason, newer hugo versions have trouble with .summary, and on some pages where .summary is not defined in the page header metadata, when rendering the page as a preview card, hugo swallows the card's closing tag. Such a weird bug, we now just work around it by explicitly setting the .summary meta on pages that cause this bug(?) to surface. --- themes/conspiracy/layouts/_partials/card.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'themes') diff --git a/themes/conspiracy/layouts/_partials/card.html b/themes/conspiracy/layouts/_partials/card.html index 21eeebf..b158e59 100644 --- a/themes/conspiracy/layouts/_partials/card.html +++ b/themes/conspiracy/layouts/_partials/card.html @@ -3,7 +3,7 @@ {{- if and .Date (not (isset (index .Ancestors 0).Params "hide_date")) }}{{ .Date.Format "2006-01-02" }}{{- end }}
- {{ .Summary | safeHTML }} + {{ .Summary }} Read more
-- cgit