My homepage is now giving 404?

Hi,

I am new to ghost and trying to learn it/see if I am capable of managing it (I am not an engineer) for a food site I am launching. My homepage (https://suppers.ghost.io/) is just giving a 404 error now, and I have no idea what I did. I did upload a yaml file in order to create collections by tags (I wanted a collection for posts tagged as “recipes” and one for posts tagged as “newsletter” - if i navigate directly to those urls, they work - Suppers ). Below is what I uploaded. Hoping for some help for this newb!

routes:

collections:
  /recipes/:
    permalink: /recipes/{slug}/
    template: index
    filter: tag:recipes
  /newsletter/:
    permalink: /newsletter/{slug}/
    template: index
    filter: tag:newsletter
  /:permalink:/{slug}/
    template: index

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

I fixed the formatting of your routes. Assuming I didn’t mess up, you’re missing a line break on the last collection :slight_smile:

2 Likes

You are missing a carriage return:

  /:
    permalink:/{slug}/    
    template: index

After you fix that, if you still see a 404, you’ll want to check if you have any posts at the / route. If you don’t, that’s why you’re getting a 404. A post can be in only one collection at a time, and they’re assigned to the first one they match.

2 Likes