From aca1d1d256e91249ddcbc0bb048569b072cd15d5 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Tue, 25 May 2021 00:07:23 +0200 Subject: [PATCH] Use narrower container for lists --- themes/chosto/layouts/_default/baseof.html | 2 - themes/chosto/layouts/_default/list.html | 34 +++++----- themes/chosto/layouts/_default/single.html | 78 +++++++++++----------- 3 files changed, 58 insertions(+), 56 deletions(-) diff --git a/themes/chosto/layouts/_default/baseof.html b/themes/chosto/layouts/_default/baseof.html index 17325aa..86668dd 100644 --- a/themes/chosto/layouts/_default/baseof.html +++ b/themes/chosto/layouts/_default/baseof.html @@ -5,9 +5,7 @@
{{- partial "navbar.html" . -}} {{- partial "header.html" . -}} -
{{- block "main" . }}{{- end }} -
{{- partial "footer.html" . -}}
diff --git a/themes/chosto/layouts/_default/list.html b/themes/chosto/layouts/_default/list.html index d657147..1fa097b 100644 --- a/themes/chosto/layouts/_default/list.html +++ b/themes/chosto/layouts/_default/list.html @@ -1,19 +1,21 @@ {{ define "main" }} -
- {{ with .Content }} -
-
- {{ . }} -
-
- {{ end }} -
- {{ range .Paginator.Pages }} -
- {{ .Render "summary" }} -
+
+
+ {{ with .Content }} +
+
+ {{ . }} +
+
{{ end }} -
- {{- partial "pagination.html" . -}} -
+
+ {{ range .Paginator.Pages }} +
+ {{ .Render "summary" }} +
+ {{ end }} +
+ {{- partial "pagination.html" . -}} + + {{ end }} diff --git a/themes/chosto/layouts/_default/single.html b/themes/chosto/layouts/_default/single.html index e6035c8..31ac852 100644 --- a/themes/chosto/layouts/_default/single.html +++ b/themes/chosto/layouts/_default/single.html @@ -1,47 +1,49 @@ {{ define "main" }} -
- - {{ if (and .IsPage (eq .FirstSection.Section "posts"))}} - {{ with .CurrentSection }} - - {{ end }} - {{ end }} -
-
-
- {{ .Content }} -
-
-
+ {{ end }} + {{ end }} +
+
+
+ {{ .Content }} +
+
+ +
+
{{ end }}