From 4f72a56981e587576ab1691ac1e2429836e9500f Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Mon, 18 Mar 2024 18:44:38 +0100 Subject: [PATCH] fix(layouts): Avoid nesting of paragraph tags --- src/layouts/_default/list.html | 4 +--- src/layouts/_default/single.html | 4 +--- src/layouts/blog/list.html | 4 +--- src/layouts/blog/single.html | 4 +--- src/layouts/food-menu-basic-list/single.html | 4 +--- src/layouts/index.html | 4 +--- 6 files changed, 6 insertions(+), 18 deletions(-) diff --git a/src/layouts/_default/list.html b/src/layouts/_default/list.html index 1c40959..cf35ed9 100644 --- a/src/layouts/_default/list.html +++ b/src/layouts/_default/list.html @@ -6,9 +6,7 @@

{{ i18n "posts-about" }}: {{ .Title }}

{{ .Title }}

{{ end }} -

- {{ .Content }} -

+ {{ .Content }}
{{ range .Pages }} diff --git a/src/layouts/_default/single.html b/src/layouts/_default/single.html index a9fe315..1a605af 100644 --- a/src/layouts/_default/single.html +++ b/src/layouts/_default/single.html @@ -4,8 +4,6 @@

{{ .Title }}

{{ end }} -

- {{ .Content }} -

+ {{ .Content }}
{{ end }} diff --git a/src/layouts/blog/list.html b/src/layouts/blog/list.html index 88b4222..38a2b54 100644 --- a/src/layouts/blog/list.html +++ b/src/layouts/blog/list.html @@ -4,9 +4,7 @@

{{ .Title }}

{{ end }} -

- {{ .Content }} -

+ {{ .Content }}
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }} diff --git a/src/layouts/blog/single.html b/src/layouts/blog/single.html index 3c9233d..c805b83 100644 --- a/src/layouts/blog/single.html +++ b/src/layouts/blog/single.html @@ -6,8 +6,6 @@

{{ .Title }}

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

- {{ .Content }} -

+ {{ .Content }}
{{ end }} diff --git a/src/layouts/food-menu-basic-list/single.html b/src/layouts/food-menu-basic-list/single.html index 794b2b4..b0e9d7c 100644 --- a/src/layouts/food-menu-basic-list/single.html +++ b/src/layouts/food-menu-basic-list/single.html @@ -4,9 +4,7 @@

{{ .Title }}

{{ end }} -

- {{ .Content }} -

+ {{ .Content }} {{ range $_, $menu := .Params.foodmenus }}
diff --git a/src/layouts/index.html b/src/layouts/index.html index c29fdd1..f603722 100644 --- a/src/layouts/index.html +++ b/src/layouts/index.html @@ -4,9 +4,7 @@

{{ .Title }}

{{ end }} -

- {{ .Content }} -

+ {{ .Content }} {{ if .Params.showPostsListing }}