I want to setup 2 x Collections (3 technically if you include base collection)
This is the following yaml file I have imported, but no matter what I do I simply can’t get the /certification/ collection working. The school collection is working no problem, and it has since first attempt. Adding the new /certification/ collection doesn’t play nice and I have not idea why?
I have imported the following yaml file
I have created a certification.hbs template file in the root of my theme. Exact same location as schools.hbs and page.hbs.
I have created a ‘certification’ page for /certification
One idea: Check if the new files have the same permissions has the other ones. Check if the new files are owned by the same user as the old files (the ghost default hbs files).
Was this issue ever resolved?
I’m having the same problem using Edge theme.
I can’t seem to get collections working at all except on one page only, here on the “works” page:
routes:
/:
data: page.home
template: home
collections:
/works/:
permalink: /works/{slug}/
template: index
filter: tag:works
/featured/:
permalink: /featured/{slug}/
template: featured
filter: tag:featured
taxonomies:
tag: /tag/{slug}/
author: /author/{slug}/
I’ve tried using get commands but that also didn’t work so far.
Posts tagged with “works” shows up on the works page but posts tagged “featured” don’t show up on the featured page…or any posts with any tag
I’ve tried many different things including using the same index template…is there something in Edge them which might be stopping this from working?
Is that the exact formatting you’re using? If so then the indentation is incorrect and the /featured/: line needs two spaces at the beginning. In YAML files the indentation is important as it’s what denotes structure.
Thanks for the reply Kevin
That’s helped. I corrected the indentation but I still got a blank page with no posts when my features.hbs has the code posted above.
But it’s now working when I use the same code from my index.hbs: