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/single.html | 69 ++++++++++++++++++++++++-------------------- 1 file changed, 38 insertions(+), 31 deletions(-) (limited to 'layouts/_default/single.html') 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