I tested this running Ghost 2.11.1 and the multilingual version of the Casper 2 theme.
My code is based on an older blog post by Aspire Themes on Medium: https://medium.com/aspirethemes/how-to-create-a-tags-list-page-in-your-ghost-theme-7a151413f5b0.
First, I recommend, you install Casper or the multilingual version linked above using git clone
. That way, you can't easily mess things up.
- Log into your Ghost account and add a new post called
Tags
. Make sure, it gets the slugtags
and mark it as a static page. (See the blog post by Aspire Themes for screenshots, etc.). - Go into your ghost theme directory, e.g.
cd /var/www/ghost/content/themes/WorldCasper2
. - Create a new file
touch page-tags.hbs
and open it to paste in the template below. Save your changes. - Go back to your browser and add the styling (see below) to the Tags page using the Code Injection settings.
- Publish and restart your ghost instance
ghost restart
. - Maybe add a link in your main navigation pointing to your new Tags page.
- Let me know in the comments if this was of any help to you :)