Skip to content

Commit

Permalink
fix(layouts): Avoid nesting of paragraph tags
Browse files Browse the repository at this point in the history
  • Loading branch information
etu committed Mar 18, 2024
1 parent 2092ec5 commit 4f72a56
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 18 deletions.
4 changes: 1 addition & 3 deletions src/layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ <h1>{{ i18n "posts-about" }}: {{ .Title }}</h1>
<h1>{{ .Title }}</h1>
{{ end }}

<p>
{{ .Content }}
</p>
{{ .Content }}

<div class="posts">
{{ range .Pages }}
Expand Down
4 changes: 1 addition & 3 deletions src/layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<h1>{{ .Title }}</h1>
{{ end }}

<p>
{{ .Content }}
</p>
{{ .Content }}
</div>
{{ end }}
4 changes: 1 addition & 3 deletions src/layouts/blog/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
<h1>{{ .Title }}</h1>
{{ end }}

<p>
{{ .Content }}
</p>
{{ .Content }}

<div class="posts">
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
Expand Down
4 changes: 1 addition & 3 deletions src/layouts/blog/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ <h1>{{ .Title }}</h1>

{{- partial "blog-post-meta.html" . -}}

<p>
{{ .Content }}
</p>
{{ .Content }}
</div>
{{ end }}
4 changes: 1 addition & 3 deletions src/layouts/food-menu-basic-list/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
<h1>{{ .Title }}</h1>
{{ end }}

<p>
{{ .Content }}
</p>
{{ .Content }}

{{ range $_, $menu := .Params.foodmenus }}
<div class="food-menu">
Expand Down
4 changes: 1 addition & 3 deletions src/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
<h1>{{ .Title }}</h1>
{{ end }}

<p>
{{ .Content }}
</p>
{{ .Content }}

{{ if .Params.showPostsListing }}
<hr>
Expand Down

0 comments on commit 4f72a56

Please sign in to comment.