I’m working on my tag.hbs template (the tag page) and I’m trying to group my posts by private tags (I’m trying to use public tags as main categories and private tags as subcategories).
The result I would like, for example for the public tag “Food” at the url /tag/food
Nested get-helpers is a bit of a usecase which is likely to affect performance. I personally wouldn’t approach it like this, I think you’d be better off hard-coding it, if it isn’t going to change often - or making clientside requests directly with the Content API.
As a punt/guess: try replacing @root.tag.slug with ../tag.slug
Oop, I forgot tag.slug is not a thing - it would have to be primary_tag.slug if you want something singular, otherwise you’d have to parse out the array that is tags
Yes, but as it’s clientside, it wouldn’t be good for the SEO, would it ?
usually tag index pages don’t do very will in search engines anyway, so it depends what you want to optimise for.
A middleground is what Buffer do on their blog, which has similar tag filters, is to load the first page of posts serverside, but then load any remaining posts on the different tabs/filters using clientside JS