Skip to content

Commit 99ef329

Browse files
committed
fix blockquote leak
without this fix when the `.Summary` ends with blockquote it endsup swallowing next post as a part of blockquote formatting gohugoio/hugo#14044 gohugoio/hugo#14045 (comment) https://github.com/gohugoio/hugoDocs/pull/3230/files#diff-c06d7c00c7939481d14a2b74f72844be2e3759fdba9271e61f4f3a78ae6c7524R82-R83
1 parent 81a6775 commit 99ef329

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

‎theme/layouts/home.html‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{{ define "main" }}
22
{{ .Content }}
33
{{ range site.RegularPages }}
4-
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
5-
{{ .Summary }}
4+
<article>
5+
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
6+
{{ .Summary }}
7+
</article>
68
{{ end }}
79
{{ end }}

‎theme/layouts/section.html‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
<h1>{{ .Title }}</h1>
33
{{ .Content }}
44
{{ range .Pages }}
5-
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
6-
{{ .Summary }}
5+
<article>
6+
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
7+
{{ .Summary }}
8+
</article>
79
{{ end }}
810
{{ end }}

0 commit comments

Comments
 (0)