Sort taxonomy, term subpages by link title
This commit is contained in:
@@ -2,5 +2,5 @@
|
|||||||
{{ $page := . }}
|
{{ $page := . }}
|
||||||
|
|
||||||
{{ partial "paige/page.html" $page }}
|
{{ partial "paige/page.html" $page }}
|
||||||
{{ partial "paige/list.html" $page }}
|
{{ partial "paige/list.html" (dict "page" $page) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
6
layouts/_default/taxonomy.html
Normal file
6
layouts/_default/taxonomy.html
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
{{ $page := . }}
|
||||||
|
|
||||||
|
{{ partial "paige/page.html" $page }}
|
||||||
|
{{ partial "paige/list.html" (dict "page" $page "sort" true) }}
|
||||||
|
{{ end }}
|
6
layouts/_default/term.html
Normal file
6
layouts/_default/term.html
Normal file
@@ -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" }}
|
{{ define "pagination" }}
|
||||||
{{ $params := . }}
|
{{ $params := . }}
|
||||||
@@ -57,6 +60,10 @@
|
|||||||
{{ $pages = $page.Pages }}
|
{{ $pages = $page.Pages }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if and $pages $sort }}
|
||||||
|
{{ $pages = sort $pages "LinkTitle" }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ with $collections }}
|
{{ with $collections }}
|
||||||
<div id="paige-page-collections">
|
<div id="paige-page-collections">
|
||||||
{{ if or $sections $pages }}
|
{{ if or $sections $pages }}
|
||||||
|
Reference in New Issue
Block a user