diff options
author | jaseg <git@jaseg.de> | 2025-06-30 15:35:25 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2025-06-30 15:35:25 +0200 |
commit | 16655c00e0a84f6bfe58870c918fbfc016fe58ec (patch) | |
tree | d410d2203b32b005ebb601e766a40f280ed8d32c /themes | |
parent | a324ba7b649840c16d365b757b19db2849991f11 (diff) | |
download | blog-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.html | 2 |
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> |