Create separate blog page without changing post URL

Is it possible to create a separate blog page without changing the posts’ URL?

If not, I suppose the other option is just redirecting everything to /blog/slug? In that case, how do I redirect all of them at once?

If I’m right what you are looking for is channels :slight_smile:

https://ghost.org/docs/api/v3/handlebars-themes/routing/channels/

1 Like

Thanks, this seems like the right solution yes, but I’m having trouble with defining the routes.yaml correctly.

This is what I’ve got:

routes:

/blog/:
controller: index
filter: primary_author:martin

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

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

I made another template called home.hbs for my home page. Since I’m the only author I might as well filter the channel according to me. For now, it only shows a 404 not found. What am I doing wrong?

controller: index looks like an invalid value. Try this routing.

routes:
  /:
    controller: channel
    template: home

collections:
  /blog/:
    permalink: /{slug}/
    template: index
1 Like

Thanks for your help. This works great!

1 Like

over 2 years later and this just helped me figure out some routing clashes I had. Thanks!

1 Like