From 225a25bc7236ea4b9168ee1ac5ea0dbeb9ac5e79 Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Sun, 27 Aug 2023 12:37:24 +0200 Subject: Main container wrapper to keep content width --- layouts/_default/list.html | 2 ++ layouts/_default/single.html | 2 +- layouts/index.html | 18 +++++++++--------- layouts/partials/open_section.html | 8 +++----- layouts/partials/post.html | 4 ++-- layouts/section_page/single.html | 2 ++ 6 files changed, 19 insertions(+), 17 deletions(-) (limited to 'layouts') diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 5c60b97..8737066 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,8 +1,10 @@ {{ define "main" }} +
{{ partial "open_section.html" . }} {{ range .Paginator.Pages.ByPublishDate.Reverse }} {{ partial "post.html" . }} {{ end }} {{ partial "pagination.html" . }} +
{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 3d75915..894caf5 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,5 +1,5 @@ {{ define "main" }} -
+

{{ .Title }} diff --git a/layouts/index.html b/layouts/index.html index 8199e84..a21b7c4 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,16 +3,16 @@ {{ range $index, $element := where .Pages "Type" "in" .Site.Params.mainSections }} +
{{ partial "open_section.html" . }} +{{ range first .Params.index_show .Pages.ByPublishDate.Reverse }} +{{ partial "post.html" . }} +{{ end }} - {{ range first .Params.index_show .Pages.ByPublishDate.Reverse }} - {{ partial "post.html" . }} - {{ end }} - -
- - See all -
-
+
+ + See all +
+ {{ end }} {{ end }} diff --git a/layouts/partials/open_section.html b/layouts/partials/open_section.html index 805d802..cf59ee8 100644 --- a/layouts/partials/open_section.html +++ b/layouts/partials/open_section.html @@ -1,7 +1,5 @@ -