Use taxonomy values directly
This commit is contained in:
@@ -3,11 +3,10 @@
|
|||||||
{{ $collections := slice }}
|
{{ $collections := slice }}
|
||||||
{{ $sections := where $page.Pages "Kind" "section" }}
|
{{ $sections := where $page.Pages "Kind" "section" }}
|
||||||
{{ $pages := where $page.Pages "Kind" "in" (slice "page" "term") }}
|
{{ $pages := where $page.Pages "Kind" "in" (slice "page" "term") }}
|
||||||
{{ $taxonomies := cond $page.IsHome site.Taxonomies slice }}
|
|
||||||
|
|
||||||
{{ range $k, $v := $taxonomies }}
|
{{ range $name, $taxonomy := cond $page.IsHome site.Taxonomies slice }}
|
||||||
{{ if gt (len $v) 0 }}
|
{{ if gt (len $taxonomy) 0 }}
|
||||||
{{ $collections = $collections | append $k }}
|
{{ $collections = $collections | append $taxonomy.Page }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
@@ -18,7 +17,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
{{ partial "paige/page.html" (site.GetPage .) }}
|
{{ partial "paige/page.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user