Force sort by title for tours

This commit is contained in:
Stefan Bethke 2024-11-17 10:56:55 +01:00
parent 2a3ea0df50
commit 9e09ef9add
5 changed files with 20 additions and 8 deletions

View file

@ -1,8 +1,7 @@
--- ---
title: 37c3 Touren title: 37c3 Touren
#listsort: true
weight: 10 weight: 10
#tables: true type: tours
--- ---

View file

@ -1,8 +1,7 @@
--- ---
title: 38c3 Touren title: 38c3 Touren
#listsort: true
weight: 10 weight: 10
#tables: true type: tours
menus: menus:
main: main:
name: Touren name: Touren

View file

@ -1,8 +1,7 @@
--- ---
title: 37c3 Tours title: 37c3 Tours
#listsort: true
weight: 10 weight: 10
#tables: true type: tours
--- ---

View file

@ -1,8 +1,7 @@
--- ---
title: 38c3 Tours title: 38c3 Tours
#listsort: true
weight: 10 weight: 10
#tables: true type: tours
menus: menus:
main: main:
name: Tours name: Tours

16
layouts/tours/list.html Normal file
View file

@ -0,0 +1,16 @@
{{ define "main" -}}
<main class="main layout__main">
<header>
<h1 class="title">{{ .Title }}</h1>
</header>
{{ .Content }}
{{ $paginator := .Paginate (.Pages) -}}
{{ range $paginator.Pages.ByTitle -}}
{{ .Render "summary" }}
{{ end -}}
{{ partial "pagination.html" . }}
</main>
{{ end -}}