From 2c8a3d102b5e74744f9f0c5d27222811a8c541b3 Mon Sep 17 00:00:00 2001 From: Christophe Vandeplas Date: Mon, 10 Jan 2022 09:38:53 +0100 Subject: [PATCH] fix: [layout] adding missing topbar on multiple pages --- layouts/_default/list.html | 126 +++++++++++++++++++++++++++++++++++ layouts/_default/single.html | 2 + layouts/compliance/list.html | 2 + layouts/page/single.html | 2 + 4 files changed, 132 insertions(+) create mode 100644 layouts/_default/list.html diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..dc607f8 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,126 @@ + + + + + {{ partial "headers.html" . }} + {{ partial "custom_headers.html" . }} + + + + +
+ + {{ partial "top.html" . }} + + {{ partial "nav.html" . }} + + {{ partial "breadcrumbs.html" . }} + +
+
+
+ + +
+ + {{ $paginator := .Paginate (where .Data.Pages "Type" "blog") }} + {{ range $paginator.Pages }} +
+
+ +
+

{{ .Title }}

+
+

+ {{ if isset .Params "authors" }} + {{ i18n "authorBy" }} {{ range $index, $author := .Params.authors }}{{ if $index }}, {{ end }}{{ $author }}{{ end }} + {{ end }} + {{ if isset .Params "categories" }} + {{ if gt (len .Params.categories) 0 }} + in + {{ range $index, $category := .Params.categories }}{{ if $index }}, {{ end }} + {{ $category }}{{ end }} + {{ end }} + {{ end }} + +

+ {{ if isset .Params "date" }} + + {{ $createdAt := .Date.Format .Site.Params.date_format }} + {{ range $index, $month := slice "January" "February" "March" "April" "May" "June" "July" "August" "September" "October" "November" "December" }} + {{ $createdAt = replace $createdAt $month (i18n $month) }} + {{ end }} + +

+ {{ $createdAt }} +

+ {{ end }} +
+

{{ .Summary }}

+

{{ i18n "continueReading" }} +

+
+
+
+ {{ end }} + + +
+ + + + + + +
+ + + + {{ partial "sidebar.html" . }} + + + +
+ + + + +
+ +
+ +
+ + + {{ partial "footer.html" . }} + +
+ + + {{ partial "scripts.html" . }} + + + diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4d9ae80..986d63b 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -10,6 +10,8 @@
+ {{ partial "top.html" . }} + {{ partial "nav.html" . }} {{ partial "breadcrumbs.html" . }} diff --git a/layouts/compliance/list.html b/layouts/compliance/list.html index 40a107f..4911f90 100644 --- a/layouts/compliance/list.html +++ b/layouts/compliance/list.html @@ -10,6 +10,8 @@
+ {{ partial "top.html" . }} + {{ partial "nav.html" . }} {{ partial "breadcrumbs.html" . }} diff --git a/layouts/page/single.html b/layouts/page/single.html index 40a107f..4911f90 100644 --- a/layouts/page/single.html +++ b/layouts/page/single.html @@ -10,6 +10,8 @@
+ {{ partial "top.html" . }} + {{ partial "nav.html" . }} {{ partial "breadcrumbs.html" . }}