Ghali is a free responsive multi-language theme for Ghost. It is based on one of the most popular fashion templates for Wordpress: Cali. It supports all the latest features of Ghost v3, including members and language files. It comes with a carousel, amazing typography and membership pages. Search and Disqus comments are ready to go and easily configured. Bootstrap and strict coding hygiene make customizations a breeze. Head over to the releases page for the latest version.
Ghost uses a simple templating language called Handlebars for its themes.
This theme has lots of code comments to help explain what's going on just by reading the code. Once you feel comfortable with how everything works, we also have full theme API documentation which explains every possible Handlebars helper and template.
The main files are:
default.hbs
- The parent template file, which includes your global header/footerindex.hbs
- The main template to generate a list of posts, usually the home pagepost.hbs
- The template used to render individual postspage.hbs
- Used for individual pagestag.hbs
- Used for tag archives, eg. "all posts tagged withnews
"author.hbs
- Used for author archives, eg. "all posts written by Jamie"error.hbs
&error-404.hbs
- Used for displaying theme errors
Additional theme files are:
screen.css
- All theme styles in one filelocales\en.json
- English language filemembers\account.hbs
- Dedicated page for displaying member account informationmembers\signup.hbs
- Great place for adding your sales pitchpartials\
- Folder containing frequently used theme parts, including:comments.hbs
- Template file for the Disqus Commentsheader-background.hbs
- Responsive template, greatly improving loading timesmembership-plans.hbs
- Contains the description of the Free, Monthly and Annual plansnavigation.hbs
- Overwrites the default Ghost navigationpost-card.hbs
- Template for displaying a brief summary of a postpost-carousel-card.hbs
- Used for individual carousel cardsite-header.hbs
- Basic template for the theme headersite-nav.hbs
- The template for all elements of the navigation bar: social links, navigation, search and account menusubscribe-form.hbs
- Form for member sign up. Insert your sales pitch
- In the Ghost backend go to
Settings > Design
and click onUpload a theme
underInstalled Themes
. Upload the latest Ghali release zip-file and click onactivate
. - Complete the setup by following these steps:
- The picture in the "About" section on the homepage is set under
Settings > General
, in thePublication Identity
section you can set thePublication logo
- Create
API keys
for the search function.- Go to
Settings > Integrations
, head to theCustom Integrations
section and click on+ Add custom integration
- Choose a name, f.e. "Search", and click on
Create
- Copy the
Content API Key
andAPI URL
in to the corresponding configuration fields below
- Go to
- Configure the theme by copying the following code in
Settings > Code Injection
in theSite Header
area
<script>
// Configuration for Ghali theme
var themeConfig = {
// Your search API key
searchKey: '11111a11aa111111a1a1a1111a',
// Your API URL
searchURL: 'http://localhost:2368',
// Placeholder text for the search input field
searchHint: 'Search...',
// Your Disqus username (leave blank for no comments)
disqusUsername: '',
// Show "Powered by Ghost | Theme Ghali" in the footer
showPoweredBy: true,
};
</script>
- Set the accent color of Portal to
#ee4073
- Go to
Settings > Labs
and click onMembers
- Click on the
Customize
button in thePortal Settings
section - Set the
Accent Color
underLook & Feel
toee4073
- Go to
- Configure the routing to the custom member pages
- Go to
Setting > Labs
- Click on the
Upload routes YAML
button in theBeta Features
section - Upload the
routes.yaml
file from this repository
- Go to
The stylesheets 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:
# install dependencies
yarn install
# run development server
yarn 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.
# create .zip file
yarn zip
- 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.
- Color Mod
- v1.0.0 Initial release
- Dark mode
- Additional sales options, such as pop-ups, banners, in-article call to action, etc
- Table of Content
- Sample content
- Additional membership plan table designs
- Additional post filter
- Extended article preview for non-paying members
- Dynamic reading time indicator
Ghali is distributed under the terms of the GNU GPL v3
- Cali https://demo.athemes.com/cali/ , (C) aThemes, GPLv3
- Bootstrap http://getbootstrap.com/ , (C) 2011-2018 Twitter, Inc, MIT
- Owl Carousel http://owlgraphic.com/owlcarousel/ ,(C) Bartosz Wojciechowski, MIT
- FitVids http://fitvidsjs.com/ , (C) Chris Coyier, Paravel, WTFPL
- PrismJS https://prismjs.com/ , (C) PrismJS, MIT
- Search in Ghost https://github.com/gmfmi/searchinGhost , (C) gmfmi, MIT
- Screenshot image https://www.pexels.com/photo/photo-of-man-using-headphones-3752835/ , (C) Andrea Piacquadio, CC0
- Screenshot image https://www.pexels.com/photo/man-love-people-woman-5029658/ , (C) Andrea Piacquadio, CC0
- Screenshot image https://www.pexels.com/photo/woman-in-purple-top-and-plaid-skirt-near-car-932402/ , (C) Godisable Jacob, CC0
- Screenshot image https://pixabay.com/photos/model-woman-portrait-sexy-984246/ , (C) Free-Photos, CC0
- Screenshot image https://www.pexels.com/photo/woman-in-red-jumping-1129605/ , (C) Artem Beliaikin, CC0
- Screenshot image https://unsplash.com/photos/O_XIvDy0pcs , (C) Christiana Rivers, CC0