Is it possible to create two levels deep URL structure in Ghost?

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:

collections:
  /:
    permalink: /{slug}/
    template: index
  /crisis/climate-catastrophe/:
    permalink: /crisis/climate-catastrophe/{slug}/
    template: crisis-solutions-research/crisis-climate-catastrophe
    filter: tag:climate-catastrophe
  /crisis/energy-depletion/:
    permalink: /crisis/energy-depletion/{slug}/
    template: crisis-solutions-research/crisis-energy-depletion
    filter: tag:energy-depletion
  /crisis/food-crisis/:
    permalink: /crisis/food-crisis/{slug}/
    template: crisis-solutions-research/crisis-food-crisis
    filter: tag:food-crisis

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.

4 Likes