From 82fdcd672008651dd76f8b1f506f534145d5cc7a Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Fri, 13 Oct 2023 03:12:43 +0200 Subject: Striped sections --- layouts/_default/baseof.html | 20 ++++++------- layouts/_default/list.html | 12 ++++---- layouts/_default/single.html | 69 ++++++++++++++++++++++++-------------------- 3 files changed, 55 insertions(+), 46 deletions(-) (limited to 'layouts/_default') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index b0a5999..2ee48da 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,12 +1,12 @@ - + - {{- partial "head.html" . -}} - - {{- partial "header.html" . -}} - {{ block "hero" . }} {{ end }} -
- {{- block "main" . }}{{- end }} -
- {{- partial "footer.html" . -}} - + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} + {{ block "hero" . }}{{ end }} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} + diff --git a/layouts/_default/list.html b/layouts/_default/list.html index f8b838d..2349bb7 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,10 +1,12 @@ {{ define "hero" }} -{{ partial "hero.html" . }} + {{ partial "hero.html" . }} {{ end }} {{ define "main" }} -{{ range .Paginator.Pages.ByPublishDate.Reverse }} -{{ partial "post.html" . }} -{{ end }} -{{ partial "pagination.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 77b7f97..bcd733b 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,36 +1,43 @@ {{ define "main" }} -
-

- {{ .Title }} -

+
+

+ {{ .Title }} +

- {{ with .Params.subtitle }} -

{{ . }}

- {{end}} + {{ with .Params.subtitle }} +

{{ . }}

+ {{ end }} - {{ with resources.Get (index .Params.images 0) }} - {{ $image := .Fill (default "400x400" $.Params.image_size) }} -
- {{ .Title }} - {{ with $.Params.caption }} - - {{ .text }} - - {{ end }} -
- {{end}} - - {{ if isset .Params "metadata" }} - {{ partial "metadata.html" . }} + {{ with resources.Get (index .Params.images 0) }} + {{ $image := .Fill (default "400x400" $.Params.image_size) }} +
+ {{ .Title }} + {{ with $.Params.caption }} + + {{ .text }} + {{ end }} -
-
-{{ .Content }} -
-
-{{ if isset .Params "metadata" }} -{{ partial "author_card" . }} -{{ end }} -{{ partial "post_pager" . }} -
+ + {{ end }} + + {{ if isset .Params "metadata" }} + {{ partial "metadata.html" . }} + {{ end }} +
+
+ {{ .Content }} +
+
+ {{ if isset .Params "metadata" }} + {{ partial "author_card" . }} + {{ end }} + {{ partial "post_pager" . }} +
{{ end }} -- cgit v1.2.3