# Put a landing page as home

**URL:** <https://forum.ghost.org/t/put-a-landing-page-as-home/42961>\
**Category:** Using Ghost\
**Created:** [November 26, 2023, 1:14am UTC](https://forum.ghost.org/t/put-a-landing-page-as-home/42961 "2023-11-26T01:14:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arcastar](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/arcastar/32/18259_2.png) [@Arcastar](https://forum.ghost.org/u/Arcastar)\
**Post date:** [November 26, 2023, 1:14am UTC](https://forum.ghost.org/t/put-a-landing-page-as-home/42961/1 "2023-11-26T01:14:36Z")

</div>

Hello, I am not able to find this:

I have created a page, how to set up as homepage instead default home of any theme??

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [November 26, 2023, 10:01am UTC](https://forum.ghost.org/t/put-a-landing-page-as-home/42961/2 "2023-11-26T10:01:47Z")

</div>

On one of my sites, I created a custom homepage, and moved the usual layout to `/blog`. This necessitates a custom `routes.yaml`, and homepage template.

```auto
routes:
  /:
    data: page.home
    template: home
  /rss/:
    template: rss
    content_type: text/xml

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

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

```

---

<div class="post-metadata">

**Author:** ![Arcastar](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/arcastar/32/18259_2.png) [@Arcastar](https://forum.ghost.org/u/Arcastar)\
**Post date:** [November 28, 2023, 3:40pm UTC](https://forum.ghost.org/t/put-a-landing-page-as-home/42961/3 "2023-11-28T15:40:41Z")

</div>

I am not able to replicate =(

It crashes.

I just want this: I create a page [mipage.com/landing](http://mipage.com/landing)

I want that home page ([mypage.com](http://mypage.com)) ere that created.

=(

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [November 28, 2023, 5:26pm UTC](https://forum.ghost.org/t/put-a-landing-page-as-home/42961/4 "2023-11-28T17:26:33Z")

</div>

Did you create a page with the slug ‘home’? And do you have a home.hbs file in your theme? If you didn’t, that’s probably why it isn’t working… (You could change the template to index.hbs instead if your theme doesn’t have a home.hbs.)

If you can provide more details on what’s not working (“it crashes” ?) we can try to help more!

---

<div class="post-metadata">

**Author:** ![JBo](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@JBo](https://forum.ghost.org/u/JBo)\
**Post date:** [March 11, 2024, 12:08am UTC](https://forum.ghost.org/t/put-a-landing-page-as-home/42961/10 "2024-03-11T00:08:36Z")

</div>

I am new to Ghost and having a similar issue. I am currently using the Source theme and I am trying to create a static page in Ghost in my account that will be my home/landing page. I created that page and it is named home (\_\_\_\_\_.ghost.io/home/). I updated the routes to be:

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

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

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

Is the route info wrong and/or am I missing something that has to also be updated in the home.hbs file?

Thanks!

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [March 11, 2024, 12:15am UTC](https://forum.ghost.org/t/put-a-landing-page-as-home/42961/11 "2024-03-11T00:15:08Z")

</div>

Routes.yaml is very fussy about spacing. Can you paste yours back in using the `</>` button to make sure it doesn’t get mangled?

You probably do NOT want to use the home template for your static page - the home template is an index-type template and displays a bunch of posts, not the content of a page. You probably want the ‘page’ template instead.

Here’s a working example:

> **[Starting Ghost: Custom homepage](https://www.spectralwebservices.com/blog/getting-started-custom-homepage/)**
>
> How to use a page as your landing page in Ghost, instead of your blog index.

---

<div class="post-metadata">

**Author:** ![JBo](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@JBo](https://forum.ghost.org/u/JBo)\
**Post date:** [March 12, 2024, 2:13pm UTC](https://forum.ghost.org/t/put-a-landing-page-as-home/42961/12 "2024-03-12T14:13:25Z")

</div>

Thank you so much, Cathy!!

---

<div class="post-metadata">

**Author:** ![ITGuy3000](https://avatars.discourse-cdn.com/v4/letter/i/13edae/32.png) [@ITGuy3000](https://forum.ghost.org/u/ITGuy3000)\
**Post date:** [March 15, 2025, 7:11pm UTC](https://forum.ghost.org/t/put-a-landing-page-as-home/42961/13 "2025-03-15T19:11:26Z")

</div>

Looking to tweak @Cathy_Sarisky 's elegant routes.yaml approach here.

Is there a simple code-injection solution for a landing page that removes all (or nearly all) nav and other links, etc., to create a simple, focused, Substack-like landing/signup page? The “no thanks” (or “Maybe later”/etc.) link would then go to the site’s main page.

If not, can a page template do this?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/9/c/9c9cb89517036a25725e5cc64bd55015b288e380.png)

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [March 15, 2025, 9:41pm UTC](https://forum.ghost.org/t/put-a-landing-page-as-home/42961/14 "2025-03-15T21:41:37Z")

</div>

I think you could build something similar as a page, including a sign up card. You’d just need to use some code injection to hide the navigation

---

<div class="post-metadata">

**Author:** ![ITGuy3000](https://avatars.discourse-cdn.com/v4/letter/i/13edae/32.png) [@ITGuy3000](https://forum.ghost.org/u/ITGuy3000)\
**Post date:** [March 15, 2025, 10:04pm UTC](https://forum.ghost.org/t/put-a-landing-page-as-home/42961/15 "2025-03-15T22:04:53Z")

</div>

Gotcha, going to try and see how it does.

If I want a logged-in free or paid member to not be shown that page, and go to the regular home page, where would I test for that?

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [March 15, 2025, 10:34pm UTC](https://forum.ghost.org/t/put-a-landing-page-as-home/42961/16 "2025-03-15T22:34:46Z")

</div>

If you can edit the theme, make a custom .hbs file. Then use handlebars to check for logged in status. If it’s got to be code injection/html card, then check for /member/api/session returning a value, and redirect if it does, using javascript.
