> For the complete documentation index, see [llms.txt](https://highfivethemes.gitbook.io/revision/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://highfivethemes.gitbook.io/revision/archive-all-posts-page.md).

# Archive (All Posts) Page

<mark style="background-color:cyan;">**Revision**</mark> 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.

<mark style="background-color:cyan;">**Revision**</mark> has **2 archive page templates** to choose from:

1. **Default Archive Page**
2. **Archive Page with Sidebar**

## 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.&#x20;

### <mark style="background-color:orange;">**If you've previously modified**</mark> <mark style="background-color:orange;"></mark><mark style="background-color:orange;">your routes.yaml</mark>

**If 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:**

1. Access your Ghost admin area, then navigate to **Settings** > **Labs**.
2. Under the **Labs** section, find and click on the <mark style="color:green;">**Download current routes**</mark> button to upload your current `routes.yaml` file.
3. Open your `routes.yaml` file in a text editor.
4. Add the following lines to your `routes.yaml`&#x20;

If you want to use **Default Archive Page** add this:

```
routes:
  /archive/:
    template: archive
    controller: channel
    data: page.archive
```

If you want to use **Archive Page with Sidebar** add this:

```
routes:
  /archive/:
    template: archive-with-sidebar
    controller: channel
    data: page.archive
```

{% hint style="warning" %}
If 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:

```yaml
/archive/:
  template: archive
  controller: channel
  data: page.archive
```

or

```yaml
/archive/:
  template: archive-with-sidebar
  controller: channel
  data: page.archive
```

This ensures that the Archive Page is added without duplicating or conflicting with existing route configurations.
{% endhint %}

5. Save your changes and re-upload the `routes.yaml` file through the same **Labs** section by clicking **Upload routes file** button.
6. After completing these steps, you need to [**add an Archive Page**](https://app.gitbook.com/o/82hWF68fXP20g6RXlRpu/s/yDAKQsLYoyUljG7lYg61/main-templates/archive-all-posts-page#adding-an-archive-page)**.**

### <mark style="background-color:orange;">**If you have not previously modified**</mark> <mark style="background-color:orange;"></mark><mark style="background-color:orange;">your routes.yaml</mark>

**This 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:**

1. Access your Ghost admin area, then navigate to **Settings** > **Labs**.
2. Under the **Labs** section, find and click on the <mark style="color:green;">**Download current routes**</mark> button for the `routes.yaml` file to make a backup.
3. Download this `routes.yaml` :&#x20;

If you want to use **Default Archive Page** download this:

{% file src="/files/jgwF0J2VWRNLQcYl9tES" %}

If you want to use **Archive Page with Sidebar** download this:

{% file src="/files/p26s9bxoNUaPqlcLl9jR" %}

4. Upload new `routes.yaml` file through the same **Labs** section by clicking **Upload routes file** button.

{% hint style="info" %}
In case if you can't download our file, here is how your `routes.yaml` should look like:

If you want to use **Default Archive Page** copy this.

{% code lineNumbers="true" fullWidth="false" %}

```yaml
routes:
  /archive/:
    controller: channel
    template: archive
    data: page.archive

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

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

{% endcode %}

If you want to use **Archive Page with Sidebar** copy this.

```yaml
routes:
  /archive/:
    controller: channel
    template: archive-with-sidebar
    data: page.archive

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

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

{% endhint %}

5. After completing these steps, you need to [**add an Archive Page**](https://app.gitbook.com/o/82hWF68fXP20g6RXlRpu/s/bWKLFzFhl9NJDGRQ49Bh/archive-all-posts-page#to-add-archive-page)**.**

### Adding an Archive Page:

1. In your Ghost admin area, go to **Pages** and click on the **New Page** button in the top right corner.
2. Title your page. You can choose any title you like for the **Archive Page**.
3. Click <img src="/files/6u4j8WLObbRiVXJ37enU" alt="" data-size="line"> icon in the top right corner to open the **Page settings**
4. In the **Page** **URL** section, ensure the slug is set to `archive`. This links the page to the route you've set up in your `routes.yaml` file.
5. **Optionally**, you can add an excerpt and feature an image to make the page more engaging.
6. 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.
