Make Content Collection with Dynamic Routing, but The URL Is Not Changed


#1

I’m quite new to ghost, and now using Ghost 2.12.

What I am trying to implement is that I’d like to have

mydomain.com/category/{slug}

as URL for every post. The category is actually my tag that I determine.

I did what https://docs.ghost.org/tutorials/creating-content-collections/ said, but it doesn’t seem to satisfy my needs.

This is what I configured:

routes:

collections:
/:
permalink: /{slug}/
template:
  - index
/sci/:
permalink: /sci/{slug}/
filter: tag:sci+tag:-social
/social/:
permalink: /social/{slug}/
filter: tag:social+tag:-sci

Thank you.


closed #2

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.