Routes Setup
To upload the routes.yaml
follow these steps:
- Unzip the aspect.zip theme file
- Go to Settings β Advanced β Labs
- Click Open β Beta features
- Under Routes section, click Upload routes file button
- Select and upload the
routes.yaml
file from the theme folder
Note: upload routes.yaml
after uploading the theme zip.
There will already be a default routes.yaml
file uploaded to Ghost. You must upload your themeβs routes.yaml
to override the default.
Do this separately after uploading your theme zip file.
The routes.yaml
is required to properly map the custom routes provided by the theme:
/archive/
- List of all posts/signup/
- Sign up page/signin/
- Sign in page/tag/*/
- List of all posts with the tag/author/*/
- List of all posts by the author and authorβs bio
Custom Pages Data
Our theme provides a few custom pages. However, to modify the page title, image, excerpt, and content, you need to activate the data
property. To do so, you must remove the #
symbol in front of the data property in the routes.yaml
file. Then, create the page with the correct slug that you wish to control.
For instance, if you want to manage the /archive/
page, create a page with the slug archive
. After that, fill in the data property in the routes.yaml
file:
collections:
...
/archive/:
permalink: /{slug}/
template: archive
data: page.archive # When active data will be taken from the "/archive/" page