feat/update-hugo #87

Merged
jtbx merged 4 commits from feat/update-hugo into main 2025-07-26 09:44:59 +02:00
Showing only changes of commit 33154e80d2 - Show all commits

Theme: Fix summary for v0.134.0

Hugo v0.134.0 changed the return value of the content summary to always be HTML instead of plain text.
So we don't need the work around any more.
jtbx 2025-07-24 10:36:11 +02:00

View file

@ -1,11 +1,7 @@
<article class="blog">
{{- partial "blog-header.html" (dict "headingLink" true "level" 2 "page" . ) }}
<section>
{{- if in .RawContent "<!--more--> " }}
{{ .Summary | safeHTML }}
{{- else }}
<p>{{ .Summary | safeHTML }}</p>
{{- end }}
{{- if .Truncated }}
<div class="morelink"><a href="{{ .RelPermalink }}">mehr...</a></div>
{{- end }}