Hi, welcome to The TechWeirdo. In today's post we are going to create a dedicated page to display all our tags on a seperate page for Ghost blogs. You can view a live example of this on my site itself at TechWeirdo.net/categories page. Now I built this around the default Source theme, but it should also work with Casper, although you may need to do some CSS changes for that.
Now, this process will be a little technical but easy, and you should be able to follow the steps easily. We are going to modify the theme file here. And for easier communication I am going to call this page as category page.
Step 1: Download the Theme file
To modify the theme file first you need to download the Source theme running on your site. To do that-
Go to the Ghost Admin panel
Then go to settings and find design and branding, and select customise.
Select change theme and go to the Installed tab > download the active theme by clicking on the menu.
Now your theme file will be downloaded on your computer, extract that in a folder.
Step 2: Add these following files to the folder
Now we need to things a handelbar file (ends with .hbs) to create the structure of the category page. And a css file to style it, now I like to add the css later via the admin panel to make style modification easier.
First create a new file and name it page-categories.hbs then copy the below file and paste it.
Now, select all the files that you extracted from the theme and zip them, and give it a new name like source-modifed.zip. If you keep the name source.zip it will change background to default theme after every update.
Step 3: Now upload the theme File to your site
Follow the steps in step 1 to the customise tab of your site design. Do to modify theme and upload your newly modified theme file.
Step 4: Publish a new page with the name categories
Now publish a new page and give it the name Categories and path categories. If you want to use any other name then that is fine to. You just need to save the .hbs file with a different name, like page-yourchoice.hbs and publish a page with the same name. Now you have a categories page, but without any style. Now do not add any feature images or anything, it does not look good, only keep the title.
Step 5: Style the categories page
Now to style the categories page go to the right side ar menu on the page (the menu where you put the meta tags etc), and tavel to code-injection option. You don't need a syringe here. Just copy the CSS from below and paste it in the header section.
Now, modify this css, according to your need to match your theme. Visit the categories page to see the new page with all your tags in one place. For better accessibility add this page on you main navigation menu.
Check out some more Ghost related tutorial to improve you ghost blog experience below.
If you like this tutorial, drop a comment or share with other fellow Ghost Users. I will write many other Ghost related tutorials in the future like implementing a dark mode switching button on the top right corner of this blog, or social share buttons etc. To get a notification at your inbox subscribe for free. Thank you for reading the TechWeirdo and have a nice day.
In this post, I have discussed all different options you can host your Ghost Blog. You can also see your price you will pay to different providers with an easy to use cost estimator.