Here’s what I’m trying to achieve:
I was wondering if it’s possible to have a url structure that’s two sub-folders deep? Example:
In the above URL structure, I would like to keep my
/subtopic/ vary based on the tag, and then have the slug for the respective article.
I know it’s possible to customize what the URL is supposed to be for a single sub-folder level URL. Just not sure if two sub-folder URL is possible.
Would really appreciate it if you could point me in the right direction.
Yup, you’d set up some collections via routing:
Here’s a portion of a
routes.yaml file of mine to show how I did it:
I then created custom templates for each subsection (so I could give the page for each subsection its own title, etc.) and dropped those into a common directory. For example, I have a
crisis-energy-depletion.hbs file in the
/crisis-solutions-research directory, and so forth.
Hope that helps.
This is helpful @Stromfeldt. If you don’t mind, could you also share with me the URL to your site? Would love to play around and get a better understanding of the interaction as well.
Sorry, that site, for a colleague of mine, is still in development and so is behind a password. Perhaps it’ll be launched later this month is the best I can say.
Cheers. No worries. Your response by itself was helpful. So, thank you!
Hey! In that scheme did you play with simple tags too?
I’m trying the same but adding specific navbars, so probably two Ghost instances could be more simple and feasible but I like this tagging approach so much.
Prior to launch the site (and its theme) ended up getting abandoned in lieu of another site (and theme), so as I only vaguely recall how things worked I’d have to reply with a “no”. Sorry I can’t offer much else beyond that.