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?
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
https://ghost.org/docs/api/v3/handlebars-themes/routing/channels/
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
Thanks for your help. This works great!
over 2 years later and this just helped me figure out some routing clashes I had. Thanks!