I thought I had Collections figured out, but apparently there’s one piece I’m missing! I’m trying to configure a locally installed Ghost instance to use:
- The site homepage will be the blog, using the template index.hbs
- Blog posts will display using post.hbs
- Comic posts should NOT display on the homepage, and will use the template comic.hbs (these should display one at a time, full page)
- The most recent comic post is the index of the collection - /comic/ and uses the comic.hbs template.
I added a collection for a comic posts, almost identical to the example on Content Collections page (Ghost Themes - Dynamic URLs & Routing):
collections:
/:
permalink: /{slug}/
template: index
filter: tags:-[comic]
/comic/:
permalink: /comic/{slug}/
template: comic
filter: primary_tag:comic
So far, most things work. I have blog posts on the home page and comic posts don’t show. Clicking through to a blog post goes to the post template (post.hbs). Going to the comic page - /comic/ in the URL - goes to the comic template (comic.hbs) and displays the most recent comic!
What’s broken is how to get all of the OTHER comic posts to also use the comic.hbs template. Currently they use post.hbs.
What did I miss?
Thanks!