5

Is there a way to change the default routing in Ghost?

I have created a blog using the ghost platform and changed the default theme from Casper to Ghostion. I then created four static pages about me, my portfolio, blog, and resume. Everything is working as it should.

Here is the problem Ghost by default passes all the blog articles to the index.hbs file. I would like to change this and have them passed to a custom blog.hbs file then when the user navigates to the /blog slug have the server serve the blog.hbs file instead of the default for static pages. Essentially, I want to move all blog post to the page dedicated for my blog instead of having them displayed on the home page of the site. I hope what I'm trying to achieve is clear.

Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
xMythicx
  • 827
  • 1
  • 11
  • 27

2 Answers2

4

Currently this is not possible without modifying huge chunks of Ghost's core code, but it might be possible in future versions when plugin support arrives.

jgillich
  • 71,459
  • 6
  • 57
  • 85
  • Thanks for the response. I think this would be a great feature added in future versions. – xMythicx Apr 07 '14 at 01:41
  • Do you have any idea when this will be on the roadmap for Ghost? – Salman Sep 16 '15 at 17:28
  • @Salman Ghost plugins, or "apps" how they call them, have been on the roadmap for a long time. I haven't been following the development recently, looks like there's still a lot to do. – jgillich Sep 17 '15 at 18:54
0

This is now available in Ghost 2.0. You can change the default routing if you use Ghost 2.0.

Here is some documentation detailing the configuration: https://docs.ghost.org/docs/dynamic-routing

Bhargav Rao
  • 50,140
  • 28
  • 121
  • 140