I have a site with lots of pages that have tags that are not used on any other page. My “tags” page is becoming quite long. I can filter the tag list by using {{range where .Pages "Pages.Len" "ge" 3}}
in the taxonomy.html
page, but the term pages are still generated (and are orphans now). I would like to omit (i.e. not generate HTML pages) all term pages that would render only 1 or 2 page links.
I’m currently using a baseof.html
template (very similar to the one in the documentation). Is there something I can do in baseof.html
or term.html
to suppress the rendering of a page?
You cannot conditionally render a page. Don’t worry about the orphans.
I used to render a page with tag lists, there you could skip tags with len<3.
My list links to link-list per term. You will get a link-list for every term … but it’s not in the overview / top list.
my samples are here
HTH