# Shipping Custom Page with Theme

**URL:** <https://forum.ghost.org/t/shipping-custom-page-with-theme/14104>\
**Category:** Themes\
**Created:** [May 5, 2020, 8:03pm UTC](https://forum.ghost.org/t/shipping-custom-page-with-theme/14104 "2020-05-05T20:03:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![arothberg](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/arothberg/32/7664_2.png) [@arothberg](https://forum.ghost.org/u/arothberg)\
**Post date:** [May 5, 2020, 8:03pm UTC](https://forum.ghost.org/t/shipping-custom-page-with-theme/14104/1 "2020-05-05T20:03:25Z")

</div>

Is it possible to ship a custom page with a theme such that no additional setup is needed to activate that page once the theme is activated (ie not needing to create a `Page` or modify `routes.yaml`).

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [May 6, 2020, 2:35pm UTC](https://forum.ghost.org/t/shipping-custom-page-with-theme/14104/2 "2020-05-06T14:35:59Z")

</div>

There’s solution for that over here: [Upload Files in Ghost - #6 by vikaspotluri123](https://forum.ghost.org/t/upload-files-in-ghost/1560/6)

> [@Upload Files in Ghost](https://forum.ghost.org/t/upload-files-in-ghost/1560/6):
>
> If you want to serve custom content from the same domain as your Ghost installation, you have a few options -
> 
> 1. (recommended) upload whatever files you want to the `assets` folder of your theme. Upload your theme and navigate to `https://your.blog/assets/file.html`

---

<div class="post-metadata">

**Author:** ![arothberg](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/arothberg/32/7664_2.png) [@arothberg](https://forum.ghost.org/u/arothberg)\
**Post date:** [May 6, 2020, 2:48pm UTC](https://forum.ghost.org/t/shipping-custom-page-with-theme/14104/3 "2020-05-06T14:48:40Z")

</div>

Is there any way to do that with a Handlebars page (server side rendered) that does need to be processed prior to serving?

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [May 6, 2020, 2:50pm UTC](https://forum.ghost.org/t/shipping-custom-page-with-theme/14104/4 "2020-05-06T14:50:12Z")

</div>

Not that I can think of, as Handlebars templates are designed to render pages and structure that have been put into Ghost 😊. Can I ask what the use case is?

---

<div class="post-metadata">

**Author:** ![arothberg](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/arothberg/32/7664_2.png) [@arothberg](https://forum.ghost.org/u/arothberg)\
**Post date:** [May 6, 2020, 3:10pm UTC](https://forum.ghost.org/t/shipping-custom-page-with-theme/14104/5 "2020-05-06T15:10:23Z")

</div>

My use case is that I want a page that lists all of the posts (what might traditionally be on the `index` page) and for my `index` page I have something like featured posts, recent posts, recent posts by specific tags, etc. I want to deploy that `posts` page with my theme (it is linked to from the index page under a “show all posts button”). Right now I have to create that page and make sure the slug is set up correctly, etc so that the link from the index page works.

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [May 6, 2020, 3:22pm UTC](https://forum.ghost.org/t/shipping-custom-page-with-theme/14104/6 "2020-05-06T15:22:46Z")

</div>

In that case could you not supply the `routes.yaml` as part of your theme bundle? Then the theme user can upload the routes file. I’ve seen this done with many themes, including the main themes from Ghost 😊

---

<div class="post-metadata">

**Author:** ![arothberg](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/arothberg/32/7664_2.png) [@arothberg](https://forum.ghost.org/u/arothberg)\
**Post date:** [May 6, 2020, 4:07pm UTC](https://forum.ghost.org/t/shipping-custom-page-with-theme/14104/7 "2020-05-06T16:07:00Z")

</div>

Sure, and perhaps this is just my being a new user to Ghost, but why is that file not uploaded with /activated with the theme?

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [May 6, 2020, 4:23pm UTC](https://forum.ghost.org/t/shipping-custom-page-with-theme/14104/8 "2020-05-06T16:23:42Z")

</div>

The site routes and the theme should be applied independently. If someone has put together a specific set of pages with their routes, creating a specific sitemap for their content, if they apply a new theme they won’t want that route structure being destroyed by the theme. Hope that makes sense 😊

---

<div class="post-metadata">

**Author:** ![arothberg](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/arothberg/32/7664_2.png) [@arothberg](https://forum.ghost.org/u/arothberg)\
**Post date:** [May 6, 2020, 4:35pm UTC](https://forum.ghost.org/t/shipping-custom-page-with-theme/14104/9 "2020-05-06T16:35:48Z")

</div>

Right, I sort of figured that, which is why I was wondering if there is a way to _add_ routes as part of the theme activation without needing to resort to the routes file or creating “pages”.
