From 79471e08a00f7df746690e1361aa9948d2831295 Mon Sep 17 00:00:00 2001 From: crnh <30109443+crnh@users.noreply.github.com> Date: Wed, 4 Mar 2026 21:23:05 +0100 Subject: [PATCH] Change paragraph to div for summary Hugo's automatic and manual summaries (see https://gohugo.io/content-management/summaries/#manual-summary) are wrapped in a paragraph. Nested paragraphs are invalid, so when the browser renders the summary, it will be placed _after_ the `.line-summary` paragraph, causing the summary to be styled as normal text. Using a `div` for the summary results in correct styling of these summaries, while keeping the styling for summaries specified in the frontmatter intact. --- layouts/partials/post-entry.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/post-entry.html b/layouts/partials/post-entry.html index ac1386b2..435ac216 100644 --- a/layouts/partials/post-entry.html +++ b/layouts/partials/post-entry.html @@ -14,7 +14,7 @@

{{ if .Site.Params.listSummaries }} -

{{ .Summary }}

+
{{ .Summary }}
{{ end }} - \ No newline at end of file +