From e51a2dc03d4e2f0a3ae433c554a51ab5ebe7f86c Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Sat, 22 May 2021 21:24:50 +0200 Subject: [PATCH] Use same page for homepage and list for factorization --- themes/chosto/layouts/_default/list.html | 22 +++++++++++----------- themes/chosto/layouts/index.html | 13 ------------- themes/chosto/layouts/partials/header.html | 2 ++ 3 files changed, 13 insertions(+), 24 deletions(-) delete mode 100644 themes/chosto/layouts/index.html diff --git a/themes/chosto/layouts/_default/list.html b/themes/chosto/layouts/_default/list.html index c14fca1..2bd31b2 100644 --- a/themes/chosto/layouts/_default/list.html +++ b/themes/chosto/layouts/_default/list.html @@ -1,15 +1,15 @@ {{ define "main" }}
-
- - {{ .Content }} -
- - {{- partial "pagination.html" . -}} + {{ with .Content }} +
+ {{ . }} +
+ {{ end }} + {{ range .Paginator.Pages }} +
+ {{ .Render "summary" }} +
+ {{ end }} + {{- partial "pagination.html" . -}}
{{ end }} diff --git a/themes/chosto/layouts/index.html b/themes/chosto/layouts/index.html deleted file mode 100644 index 669aa29..0000000 --- a/themes/chosto/layouts/index.html +++ /dev/null @@ -1,13 +0,0 @@ -{{ define "main" }} -
- {{ with .Content }} -
- {{ . }} -
- {{ end }} - {{ range .Paginator.Pages }} - {{ .Render "summary" }} - {{ end }} - {{- partial "pagination.html" . -}} -
-{{ end }} diff --git a/themes/chosto/layouts/partials/header.html b/themes/chosto/layouts/partials/header.html index c14f416..b9db5df 100644 --- a/themes/chosto/layouts/partials/header.html +++ b/themes/chosto/layouts/partials/header.html @@ -12,6 +12,7 @@ {{ end }} {{ end }} + {{ if .IsPage }} + {{ end }}