summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2025-06-30 15:35:25 +0200
committerjaseg <git@jaseg.de>2025-06-30 15:35:25 +0200
commit16655c00e0a84f6bfe58870c918fbfc016fe58ec (patch)
treed410d2203b32b005ebb601e766a40f280ed8d32c /themes
parenta324ba7b649840c16d365b757b19db2849991f11 (diff)
downloadblog-16655c00e0a84f6bfe58870c918fbfc016fe58ec.tar.gz
blog-16655c00e0a84f6bfe58870c918fbfc016fe58ec.tar.bz2
blog-16655c00e0a84f6bfe58870c918fbfc016fe58ec.zip
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 </div> 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.
Diffstat (limited to 'themes')
-rw-r--r--themes/conspiracy/layouts/_partials/card.html2
1 files changed, 1 insertions, 1 deletions
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")) }}<strong>{{ .Date.Format "2006-01-02" }}</strong>{{- end }}
<div class="summary">
- {{ .Summary | safeHTML }}
+ {{ .Summary }}
<a href="{{ .Permalink }}">Read more</a>
</div>