From: Sardorbek Imomaliev <3041675+imomaliev@users.noreply.github.com> Date: Sun, 12 Oct 2025 21:47:49 +0000 (+0100) Subject: create/skeletons: Wrap section and home lists with section tags X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=29cf87444f97665a753732d1fa5efd2770f9ee43;p=brevno-suite%2Fhugo create/skeletons: Wrap section and home lists with section tags Avoiding issues with tag leakage when using .Summary See issue #14044 for details. --- diff --git a/create/skeletons/theme/layouts/home.html b/create/skeletons/theme/layouts/home.html index 0df659742..0c764256d 100644 --- a/create/skeletons/theme/layouts/home.html +++ b/create/skeletons/theme/layouts/home.html @@ -1,7 +1,9 @@ {{ define "main" }} {{ .Content }} {{ range site.RegularPages }} -

{{ .LinkTitle }}

- {{ .Summary }} +
+

{{ .LinkTitle }}

+ {{ .Summary }} +
{{ end }} {{ end }} diff --git a/create/skeletons/theme/layouts/section.html b/create/skeletons/theme/layouts/section.html index 50fc92d40..748f2f559 100644 --- a/create/skeletons/theme/layouts/section.html +++ b/create/skeletons/theme/layouts/section.html @@ -2,7 +2,9 @@

{{ .Title }}

{{ .Content }} {{ range .Pages }} -

{{ .LinkTitle }}

- {{ .Summary }} +
+

{{ .LinkTitle }}

+ {{ .Summary }} +
{{ end }} {{ end }}