Force sort by title for tours
This commit is contained in:
parent
2a3ea0df50
commit
9e09ef9add
5 changed files with 20 additions and 8 deletions
|
@ -1,8 +1,7 @@
|
|||
---
|
||||
title: 37c3 Touren
|
||||
#listsort: true
|
||||
weight: 10
|
||||
#tables: true
|
||||
type: tours
|
||||
|
||||
---
|
||||
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
---
|
||||
title: 38c3 Touren
|
||||
#listsort: true
|
||||
weight: 10
|
||||
#tables: true
|
||||
type: tours
|
||||
menus:
|
||||
main:
|
||||
name: Touren
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
---
|
||||
title: 37c3 Tours
|
||||
#listsort: true
|
||||
weight: 10
|
||||
#tables: true
|
||||
type: tours
|
||||
|
||||
---
|
||||
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
---
|
||||
title: 38c3 Tours
|
||||
#listsort: true
|
||||
weight: 10
|
||||
#tables: true
|
||||
type: tours
|
||||
menus:
|
||||
main:
|
||||
name: Tours
|
||||
|
|
16
layouts/tours/list.html
Normal file
16
layouts/tours/list.html
Normal 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 -}}
|
Loading…
Reference in a new issue