|
|
@ -40,8 +40,8 @@
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ $collections := slice }}
|
|
|
|
{{ $collections := slice }}
|
|
|
|
{{ $pages := $page.RegularPages | and ($page.Param "paige.pages.disable_pages" | not) }}
|
|
|
|
{{ $pages := slice }}
|
|
|
|
{{ $sections := $page.Sections | and ($page.Param "paige.pages.disable_sections" | not) }}
|
|
|
|
{{ $sections := slice }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ if $page.IsHome }}
|
|
|
|
{{ if $page.IsHome }}
|
|
|
|
{{ range $name, $taxonomy := site.Taxonomies }}
|
|
|
|
{{ range $name, $taxonomy := site.Taxonomies }}
|
|
|
@ -54,11 +54,19 @@
|
|
|
|
{{ $collections = $collections | and ($page.Param "paige.pages.disable_collections" | not) }}
|
|
|
|
{{ $collections = $collections | and ($page.Param "paige.pages.disable_collections" | not) }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ if in (slice "taxonomy" "term") $page.Kind }}
|
|
|
|
{{ if in (slice "taxonomy" "term") $page.Kind }}
|
|
|
|
{{ if not $pages }}
|
|
|
|
{{ range $page.Pages }}
|
|
|
|
{{ $pages = $page.Pages }}
|
|
|
|
{{ if .IsSection }}
|
|
|
|
|
|
|
|
{{ $pages = $pages | append . }}
|
|
|
|
|
|
|
|
{{ else }}
|
|
|
|
|
|
|
|
{{ $sections = $sections | append . }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ $pages = sort $pages "LinkTitle" }}
|
|
|
|
{{ $pages = sort $pages "LinkTitle" | and ($page.Param "paige.pages.disable_pages" | not) }}
|
|
|
|
|
|
|
|
{{ $sections = sort $sections "LinkTitle" | and ($page.Param "paige.pages.disable_sections" | not) }}
|
|
|
|
|
|
|
|
{{ else }}
|
|
|
|
|
|
|
|
{{ $pages = $page.Pages | and ($page.Param "paige.pages.disable_pages" | not) }}
|
|
|
|
|
|
|
|
{{ $sections = $page.Sections | and ($page.Param "paige.pages.disable_sections" | not) }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ with $collections }}
|
|
|
|
{{ with $collections }}
|
|
|
|