Skip to content
Download the Ghost Themes Bundle for only $249 — Use BUNDLE code for 10% discount 🔥

How to Create a Tags List Page in Your Ghost Theme

Adding a page to list all the tags in your Ghost theme will give your readers the opportunity to discover and browse your content.

In this post, I will share with you how to add a custom tags page to your Ghost theme. I will use the default Casper theme as an example, but all the steps and codes will apply to any theme with a little customization as required.

1. Create the Tags Page Theme File

In your theme directory, create a new file and name it custom-tags.hbs and then copy the following code inside it.

{{!< default}}

<header class="site-header">
  <div class="outer site-nav-main">
    <div class="inner">
      {{> "site-nav"}}


<main id="site-main" class="site-main outer" role="main">
  <div class="inner">
    <header class="post-full-header">
      <h1 class="post-full-title">{{title}}</h1>
    {{#get 'tags' limit='all' include='count.posts' order='count.posts desc'}}
    {{#foreach tags}}
        <a href='{{ url }}'>
        <h2>{{ name }} <small>({{ count.posts }})</small></h2>


In this code, the get helper used to get the blog tags. The include attribute used to include the posts count. The order attribute used to order the tags based on the number of posts attached to them.

Next, the foreach helper used to loop through each tag and render the list with the tag URL, title, and the posts count.

At this stage, you may need to do a server restart. This will help the Template dropdown to show up in the next step.

2. Create the Tags Static Page

Create the Tags Static Page

  • Create a new page and call it Tags for example.
  • From Page settings, choose the Tags template from the Template dropdown.
  • Publish the page.

Ghost Casper Theme Tags Page

This is an initial example of what you can do to the tags page. You can take the code further and show the tag image with a custom design. As an example, you can create something like what I have done with the Nubia and Sinai themes. You can also add the tag page link to the blog navigation.

Ghost Nubia Theme Tags Page

Ghost Sinai Theme Tags Page

I would recommend checking the Ghost tags documentation for more information about the list of available attributes.

Make a Stunning Ghost Website

Beautiful, functional Ghost CMS themes with unparalleled support.

Explore themes →
  • Easy Install
  • Free Support & Updates
  • 100% Money-Back Guarantee