oakbrad / ghost-basilica-theme

Basilica is a modified version of Casper for Dungeon Church
https:/www.dungeon.church
MIT License
1 stars 0 forks source link
ghost ghost-blog ghost-blog-theme ghost-theme sidenotes theme

Basilica

This is a modified version of the Casper theme for Dungeon Church.

Changes to this repo are deployed onto the live production site.

Notes

To work on this:

  1. Install Ghost locally
  2. Upload the zip of this repo into the theme section of the admin panel
  3. ghost run -D shows debug output in terminal

Editing the theme files is live in local dev mode, but adding new hbs files requires a restart.

Original Readme

First time using a Ghost theme?

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:

One neat trick is that you can also create custom one-off templates by adding the slug of a page to a template file. For example:

Development

Casper 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:

# 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

PostCSS Features Used

SVG Icons

Casper uses inline SVG icons, included via Handlebars partials. You can find all icons inside /partials/icons. To use an icon just include the name of the relevant file, eg. To include the SVG icon in /partials/icons/rss.hbs - use {{> "icons/rss"}}.

You can add your own SVG icons in the same manner.

Copyright & License

Copyright (c) 2013-2023 Ghost Foundation - Released under the MIT license.