Chronicles
Ghost theme
About
Supports Ghost version 3.x, 4.x
.
Theme Installation
Log in to the Ghost dashboard of your blog by visiting
yourblog.com/ghost
.Go to Design in the sidebar, and upload your theme there.
Once uploaded. Click on Activate now button to activate the theme immediately or Close if you want to activate it later.
Theme Development
The theme uses Gulp and Node.js for development purposes. You'll need Node.js v10.15.0
installed on your machine. (If you're on a different version of Node, we recommend using NVM to get the correct version of node on your machine.)
Once you have node installed, run the following commands from the theme root directory.
Now you can edit the SCSS and JS files in /assets/src/
, which will be compiled to /assets/built/
automatically.
To generate a production ready theme zip file, run the following command. It will minify all the CSS & JS files and package the theme into dist/<theme-name>.zip
.
Activate Search
Chronicles uses search service from SiteSearch360, which is a recommended service by Ghost. To active it, follow these steps:
Signup at SiteSearch360, and add your blog.
Open the
default.hbs
file present in theme.Look for the following code snippet at the end of the file:
Remove the comments (i.e. line 1 and 14 shown above.)
Add your Site Id.
Save the file.
Go to
partials/header.hbs
file and make the following changes:Look for the following line:
Remove the comments by deleting the
{{!--
and--}}
.Save the file.
Go to
partials/floating-header.hbs
file and make the following changes:Look for the following line:
Remove the comments by deleting the
{{!--
and--}}
.Save the file.
Done! Zip the theme folder and upload it to your site.
Editor's Pick Section
To add a post in the editors pick section, you need to add the internal tag #editors-pick
to the post.
Note: Editors Pick section will remain invisible if it has no posts.
Activate Disqus Comments
Open up the
post.hbs
file in any text editor.Look for the comments section.
Add the following code snippet in the comments section.
Don't forget to modify the
s.src = 'https://<YOUR SITE'S DISQUS SHORTNAME>.disqus.com/embed.js';
to your disqus url.Done! Zip the theme folder and upload it your site.
Add Social Media Icons
Icons for Facebook and Twitter are already implemented in the code. To activate icons for other social networks, insert the following code snippets in the respective files.
In Footer.hbs
In Author.hbs
Icons for Behance, Dribbble, 500px, Github, Gmail, Instagram, Linkedin, Medium, Pinterest, Reddit, RSS, Tumblr, & Youtube are included in the theme. If you require more icons, you may visit Simple Icons and download the required icons.
Links
Last updated