/ tech-note

How to create a custom static page in Ghost?

It is simple. Take the following steps:

  • Add a custom page from an admin page, where you enable the "custom page" checklist.

  • Create a page-{customURL}.hbs in the root of your theme directory. The customURL must be the same as the root URL you want. If you show the page at yourblog.com/about, it must be page-about.hbs.

Note that Ghost uses page.hbs if you don't create a custom page layout for the static file.

Also note that if you don't have page.hbs, which is a file for your static page, Ghost instead uses post.hbs.