Force sort by title for tours
This commit is contained in:
parent
2a3ea0df50
commit
9e09ef9add
|
@ -1,8 +1,7 @@
|
||||||
---
|
---
|
||||||
title: 37c3 Touren
|
title: 37c3 Touren
|
||||||
#listsort: true
|
|
||||||
weight: 10
|
weight: 10
|
||||||
#tables: true
|
type: tours
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
---
|
---
|
||||||
title: 37c3 Tours
|
title: 37c3 Tours
|
||||||
#listsort: true
|
|
||||||
weight: 10
|
weight: 10
|
||||||
#tables: true
|
type: tours
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -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
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