diff options
author | Oscar Najera <hi@oscarnajera.com> | 2023-08-27 12:37:24 +0200 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2023-08-27 12:37:24 +0200 |
commit | 225a25bc7236ea4b9168ee1ac5ea0dbeb9ac5e79 (patch) | |
tree | 8276be41bce300a5c52abfbff92c1f5841e8309a /layouts | |
parent | a0e572976134fc06e30dfacaebb7bac9eb2cbd86 (diff) | |
download | hugo-minimalist-theme-225a25bc7236ea4b9168ee1ac5ea0dbeb9ac5e79.tar.gz hugo-minimalist-theme-225a25bc7236ea4b9168ee1ac5ea0dbeb9ac5e79.tar.bz2 hugo-minimalist-theme-225a25bc7236ea4b9168ee1ac5ea0dbeb9ac5e79.zip |
Main container wrapper to keep content width
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/list.html | 2 | ||||
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 18 | ||||
-rw-r--r-- | layouts/partials/open_section.html | 8 | ||||
-rw-r--r-- | layouts/partials/post.html | 4 | ||||
-rw-r--r-- | layouts/section_page/single.html | 2 |
6 files changed, 19 insertions, 17 deletions
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" }} +<div class="mw7 center avenir ph2"> {{ partial "open_section.html" . }} {{ range .Paginator.Pages.ByPublishDate.Reverse }} {{ partial "post.html" . }} {{ end }} {{ partial "pagination.html" . }} +</div> {{ 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" }} -<article class="mw7 center ph2"> +<article class="mw7 center avenir ph2"> <header> <h2 class="baskerville f2 lh-title mv3"> {{ .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 @@ <!-- Page Content --> {{ range $index, $element := where .Pages "Type" "in" .Site.Params.mainSections }} +<div class="mw7 center avenir ph2"> {{ 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 }} - - <div class="tc pa3"> - <i class="fas fa-angle-right"></i> - <a href="{{ .Type }}" class="f3 link near-black">See all</a> - </div> - </div> +<div class="tc pa3"> + <i class="fas fa-angle-right"></i> + <a href="{{ .Type }}" class="f3 link near-black">See all</a> +</div> +</div> {{ 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 @@ -<div class="mw7 center pa2"> - <h2 class="baskerville f2 lh-title">{{ .Title }}</h2> +<h2 class="baskerville f2 lh-title">{{ .Title }}</h2> - <div class="main-content lh-copy"> - {{ .Content }} - </div> +<div class="main-content lh-copy"> + {{ .Content }} </div> diff --git a/layouts/partials/post.html b/layouts/partials/post.html index 99aa825..19352e6 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -1,5 +1,5 @@ -<article class="mw7 center pv4 ph3"> -<a class="db no-underline grow" href= "{{ .RelPermalink }}"> +<article class="pv4 bt bb b--black-10"> +<a class="db no-underline dim" href= "{{ .RelPermalink }}"> <h3 class="f3 baskerville mt0 lh-title near-black">{{.Title }}</h3> <div class="cf"> {{ if isset .Params "image" }} diff --git a/layouts/section_page/single.html b/layouts/section_page/single.html index 1f550d3..162b4b7 100644 --- a/layouts/section_page/single.html +++ b/layouts/section_page/single.html @@ -1,8 +1,10 @@ {{ define "main" }} {{ partial "hero.html" . }} +<div class="mw7 center avenir ph2"> {{ range .Resources.ByType "page" }} {{ partial "open_section.html" . }} {{ end }} +</div> {{ end }} |