♾️Archive (All posts) Template
Paradign has a template for the Archive (All posts) Page, which shows all of the posts of your publication. An archive page is not required, but you can add it if you want.


To add Archive Page:
To add an Archive Page to your publication, you'll need to modify your routes.yaml file due to the nature of Ghost's routing system.
If you've previously modified your routes.yaml
routes.yamlIf you've previously modified your routes.yaml file for any reason, you only need to incorporate the following lines to add an Archive Page to your publication. This ensures you keep your custom configurations while enabling the archive functionality.
Here's a quick guide:
Access your Ghost admin area, then navigate to Settings > Labs.
Under the Labs section, find and click on the Download current routes button to upload your current
routes.yamlfile.Open your
routes.yamlfile in a text editor.Add the following lines to your
routes.yamlfile
routes:
/archive/:
template: archive
controller: channel
data: page.archiveIf your routes.yaml file already contains a routes: field, you do not need to add another routes: field. Simply incorporate the Archive Page configuration under the existing routes: field like so:
/archive/:
template: archive
controller: channel
data: page.archiveThis ensures that the Archive Page is added without duplicating or conflicting with existing route configurations.
Save your changes and re-upload the
routes.yamlfile through the same Labs section by clicking Upload routes file button.After completing these steps, you need to add an Archive Page.
If you have not previously modified your routes.yaml
routes.yamlThis guide is intended for users who have not previously modified their routes.yaml file. If you have already made changes to your routes.yaml file, please check this guide.
Here's a quick guide:
Access your Ghost admin area, then navigate to Settings > Labs.
Under the Labs section, find and click on the Download current routes button for the
routes.yamlfile to make a backup.Download this
routes.yaml:
Upload new
routes.yamlfile through the same Labs section by clicking Upload routes file button.
After completing these steps, you need to add an Archive Page.
Adding an Archive Page:
In your Ghost admin area, go to Pages and click on the New Page button in the top right corner.
Title your page. You can choose any title you like for the Archive Page.
Click
icon in the top right corner to open the Page settingsIn the Page URL section, ensure the slug is set to
archive. This links the page to the route you've set up in yourroutes.yamlfile.Optionally, you can add an excerpt and feature an image to make the page more engaging.
Once you're done, click on Publish to make your Archive Page live.
This page will now follow the Archive template and functionality as defined in your routes.yaml file.
Last updated