Taxonomy in nested sections

I have structure:

I added tags to subcatalog1/, subcatalog2/
tags: [‘tag1’]…

How to display them on catalog/

Add tags to your config

    tag                    = "tags"

and put this into your index-template

{{range site.Taxonomies.tags.Alphabetical -}} 
	<a href={{ .Page.RelPermalink }} >{{.Page.Title}}</a>
{{- end}}
1 Like

But I want use taxonomy for filtration on each section and filter only this section:

Is it possible?

if you have only two sections - there is an easy way, take different tags

    tag                    = "tags"
    tag1                   = "tag1s"
    tag2                   = "tag2s"
1 Like

Thanks. But I have many nested sections. And tags which used in sections (subcatalogX/ does`t show

I tried to create filter page
And use separate layout with “where” filter for them to display sections :

I have error

Failed to render pages: render of “page” failed: “C:\projects\testsite\layouts\list\testlist.html:4:12”: execute of template failed: template: list\test.html:4:12: executing “content” at <$ps.Pages>: error calling Pages: runtime error: invalid memory address or nil pointer dereference

I use this layout
{{ $ps := .Paginate .Sections }}
{{ range $ps.Pages }}
{{ .Title }}
{{ end }}

This template works with, but not works with -
Can I create separate list page for sections filtration?

Yeahh… I did it what I want!

I created -

{{ $ps := .Paginate .Parent.Sections }}
{{ range where $ps.Pages “Params.test” “test” }}
{{ .Title }}
{{ end }}

Now I can filter every level with level`s own params


you can try

{{ range where $ps.Pages “CurrentSection” “test” }}

to drop the test parameter