Shuttle
Ghost theme
About
Supports Ghost version 4.x
Theme Installation
Follow these steps to install your theme on Ghost:
Login to your ghost admin dashboard (example.com/ghost).
Click the settings icon at the bottom of the left-hand side.
Go to Themes and click Upload a theme.
Select the theme file.
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 v12
or v14
installed on your machine. (If you're on a different version of Node, we recommend using NVM to get the correct version of nodejs on your machine.)
Once you have nodejs 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
.
Memberships
Shuttle theme has full support for members feature of Ghost.
To enable a custom subscription plans page similar to the one created here, open up your Ghost dashboard and upload the custom routes.yaml
file present in the theme folder. Once the file is uploaded you can visit /membership/
to see the page.
Search
To activate the search follow these steps:
Step 1: Edit default.hbs file
Open up the default.hbs
file in theme.
Look for the following code snippet at the end of the file:
Update the values in
key
andhost
. To get the key and host values, you need to create a custom integration in Ghost. Once you create it, you'd get the Content API Key, and API URL.
Step 2: Edit header.hbs file
Open up the partials/header.hbs
file and uncomment the following lines of code
That's it. You can now zip the theme folder and upload it to your site.
Editor's Pick Section
The featured posts will be shown in the editor's pick section.
Note: Editors' Pick section will remain invisible if you have no featured posts.
Disqus Comments
To enable disqus comments on the theme, follow these steps:
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.
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