Modifying Headline theme to show more secondary tags

I have successfully modified the limits controlling how many posts are shown for each primary and secondary tag.

But I can’t figure out is what is driving the limit of how many secondary tags are displayed. It seems hard-coded at 15, but I am not finding that setting, nor how it might be computed, anywhere.

I would like to use the secondary tag formatting on the main page as a full table of contents, with about 40 tags total, but perhaps this is the wrong approach.

Any ideas or general direction welcome!

If you’re making a get request for the tags, add limit=“all”

2 Likes

Thanks, that did it!

Related to my original request:

I have modified home.hbs in the theme so the main page shows a list of 10 items of each specified tag. The tag.hbs has been modified to show a similar list, without images, of all the titles for each tag.

I would like next to clone default.hbs to a table-of-contents.hbs, modifying it so it’s a just full table of contents without the “latest” or primary tags. Basically just the grid of secondary tags with, no limits. That part seems straightforward enough, but what’s the best approach to achieving this?

At first, it seemed like a custom routes.yaml might work, to define something like /table-of-contents/ to use template “table-of-contents.hbs,” but after some initial attempts it seems I may be on the wrong path.

The working example is The Kermudgeon, with the source theme here.

You probably don’t want to copy default.hbs, but rather home or index. If you need help with routes, post the files.

1 Like

Thanks for the tip!

I copied home as my starting point, updated routes, and all is well. The only thing I cannot figure out is how to add a custom title to my new page, but that appears to be an outstanding bug. For now, my dynamic TOC is functional!

1 Like