Getting 404 page with custom home page

Hello guys, I am installed Ghost 3.25 to build custom theme on Manjaro Linux running Node.js 12. I want to build custom home page such that when I open localhost:2368 I need to see the custom home page. For this I created home.hbs.

routes.yaml looks like this:

routes:
  /:
    data: page.home
    template: home

collections:
 /blog/:
  permalink: /blog/{slug}/
  template: index
  filter: slug:-home

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

home.hbs:

{{> navigation}}

<div class="container-fluid home-landing">
    some home content
</div>

default.hbs is same as in caspter theme. index.hbs is empty.

With above config, I am getting 404 page on localhost:2368.

  • How was Ghost installed and configured?
    ghost install

  • What Node version, database, OS & browser are you using?
    Node.js 12, OS: Manjaro Linux (Arch Linux), Chormium

  • What errors or information do you see in the console?
    No errors in the console. ghost start works without any error.

  • What steps could someone else take to reproduce the issue you’re having?
    I am not sure. How about using my routes.yaml?

Thanks

Have you created (and published) a page (not post) with a slug of home ?

I don’t think I did. Can you please tell me how I do that ?

somehow, removing the line data: page.home (line 3) worked. Thanks for the hint.

1 Like