From 9e09ef9addd2608ad1ada1f7cd49e5bfee46ea88 Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Sun, 17 Nov 2024 10:56:55 +0100 Subject: [PATCH] Force sort by title for tours --- content/de/37c3/_index.md | 3 +-- content/de/38c3/_index.md | 3 +-- content/en/37c3/_index.md | 3 +-- content/en/38c3/_index.md | 3 +-- layouts/tours/list.html | 16 ++++++++++++++++ 5 files changed, 20 insertions(+), 8 deletions(-) create mode 100644 layouts/tours/list.html diff --git a/content/de/37c3/_index.md b/content/de/37c3/_index.md index f5025b7..624f03a 100644 --- a/content/de/37c3/_index.md +++ b/content/de/37c3/_index.md @@ -1,8 +1,7 @@ --- title: 37c3 Touren -#listsort: true weight: 10 -#tables: true +type: tours --- diff --git a/content/de/38c3/_index.md b/content/de/38c3/_index.md index d5a8d35..2aeb374 100644 --- a/content/de/38c3/_index.md +++ b/content/de/38c3/_index.md @@ -1,8 +1,7 @@ --- title: 38c3 Touren -#listsort: true weight: 10 -#tables: true +type: tours menus: main: name: Touren diff --git a/content/en/37c3/_index.md b/content/en/37c3/_index.md index 5c06d92..cec3d54 100644 --- a/content/en/37c3/_index.md +++ b/content/en/37c3/_index.md @@ -1,8 +1,7 @@ --- title: 37c3 Tours -#listsort: true weight: 10 -#tables: true +type: tours --- diff --git a/content/en/38c3/_index.md b/content/en/38c3/_index.md index 6a2e0b3..c7e793d 100644 --- a/content/en/38c3/_index.md +++ b/content/en/38c3/_index.md @@ -1,8 +1,7 @@ --- title: 38c3 Tours -#listsort: true weight: 10 -#tables: true +type: tours menus: main: name: Tours diff --git a/layouts/tours/list.html b/layouts/tours/list.html new file mode 100644 index 0000000..871cf95 --- /dev/null +++ b/layouts/tours/list.html @@ -0,0 +1,16 @@ +{{ define "main" -}} +
+
+

{{ .Title }}

+
+ +{{ .Content }} + +{{ $paginator := .Paginate (.Pages) -}} +{{ range $paginator.Pages.ByTitle -}} +{{ .Render "summary" }} +{{ end -}} + +{{ partial "pagination.html" . }} +
+{{ end -}}