'Fresh and Bold' is an open source, image-centric portfolio theme for Ghost derived from London theme. It was orignially developed for the personal site of Nihar Sawant and now released under the MIT license.
Demo: http://nihar.sawant.me
Ghost uses a simple templating language called Handlebars for its themes. If you are interested in building a Ghost theme for yourself, please visit the full API documentation. Any Ghost theme contains the following files:
default.hbs
- The main template fileindex.hbs
- Used for the home pagepost.hbs
- Used for individual postspage.hbs
- Used for individual pagestag.hbs
- Used for tag archivesauthor.hbs
- Used for author archives
In the case of Fresh and Bold theme, we have added a few custom templates as well:
custom-articles.hbs
: Used to render the articles page in a list formcustom-photo-journal.hbs
: Used to render the main photo journal pagecustom-post-without-featured-image.hbs
: Renders post without any featured imagecustom-subscribe.hbs
: Used for a dedicated subscribe page
⚠️ Important Note: Support for Portal feature is currently unavailable.
All the styles are compiled using Gulp/PostCSS to polyfill future CSS spec. You'll need Node, Yarn and Gulp installed globally. After that, from the theme's root directory:
$ npm install
$ npm run dev
Now you can edit /assets/css/
files, which will be compiled to /assets/built/
automatically.
The zip
Gulp task packages the theme files into dist/<theme-name>.zip
, which you can then upload to your site.
$ npm run zip
During the development, establish a symbolic link inside the Ghost instance to view the changes in realtime. To set this, make sure you have a Ghost instance running. Inside this instance setup a symbolic using following commands:
$ cd /path-to-ghost-instance/content/theme
$ ln -s /absolute-path-to-theme-repo/fresh-and-bold fresh-and-bold
Ensure that the symbolic link is setup correctly by running ls -la
. If setup correct, a new entry should appear in the themes section in Ghost admin. Activate the theme. Now, whenever you make changes to your theme, they will be reflected immediately in the Ghost instance.
- Autoprefixer: Don't worry about writing browser prefixes of any kind, it's all done automatically with support for the latest 2 major versions of every browser.
- Variables: Simple pure CSS variables
- Color Function
Copyright (c) 2013-2020 Nihar Sawant - Released under the MIT license.