Sort taxonomy, term subpages by link title

master
Will Faught 5 months ago
parent 5358e86c40
commit 874d15ee7f

@ -2,5 +2,5 @@
{{ $page := . }}
{{ partial "paige/page.html" $page }}
{{ partial "paige/list.html" $page }}
{{ partial "paige/list.html" (dict "page" $page) }}
{{ end }}

@ -0,0 +1,6 @@
{{ define "main" }}
{{ $page := . }}
{{ partial "paige/page.html" $page }}
{{ partial "paige/list.html" (dict "page" $page "sort" true) }}
{{ end }}

@ -0,0 +1,6 @@
{{ define "main" }}
{{ $page := . }}
{{ partial "paige/page.html" $page }}
{{ partial "paige/list.html" (dict "page" $page "sort" true) }}
{{ end }}

@ -1,4 +1,7 @@
{{ $page := . }}
{{ $params := . }}
{{ $page := $params.page }}
{{ $sort := $params.sort }}
{{ define "pagination" }}
{{ $params := . }}
@ -57,6 +60,10 @@
{{ $pages = $page.Pages }}
{{ end }}
{{ if and $pages $sort }}
{{ $pages = sort $pages "LinkTitle" }}
{{ end }}
{{ with $collections }}
<div id="paige-page-collections">
{{ if or $sections $pages }}

Loading…
Cancel
Save