freeCodeCamp / ghost-workaround-theme

A quick workaround to render Ghost draft previews

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ghost workaround theme

This is a slightly modified version of the default Casper theme for Ghost. The changes here should serve as a temporary fix for draft previews.

We can go back to using a default Ghost theme once we have a permanent fix in place.

Development

Casper styles are compiled using Gulp/PostCSS to polyfill future CSS spec. You only need Node installed globally. After that, from the theme's root directory:

# install dependencies
npm ci

# run development server
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.

# create .zip file
npm run zip

License

Released under the MIT license.

About

A quick workaround to render Ghost draft previews

License:MIT License


Languages

Language:CSS 58.3%Language:Handlebars 29.1%Language:JavaScript 12.5%