Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

lacymorrow/casper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Repository files navigation

Casper

A Ghost-like 👻 WordPress theme

WordPressLicense: GPL v2

Casper(for WordPress)is a simple yet beautiful theme for bloggers.

Inspired by theGhostblogging platform, Casper is aWordPressport of thedefault theme by the same name.The goal of this project is to emulate the gorgeous theme while taking advantage of features exclusive to the WordPress framework.

Features

  • Search feature 🔦
  • Comments section 🙊
  • Customizer integration 🌈
  • Social icons pre-included 🐾
  • Responsive site and images 🐛

screenshot

Table of Contents

Usage

Download thezippackage of the theme and install either automatically through the WordPress Dashboard > Appearance tab, or by uploading thecasperfolder to your WordPress/wp-content/themes directory.

Thestyle.cssfile in the theme directory is minified. A human-readable version of is located atcss/style.css.

Editing Casper

The recommended way to edit the Casper theme is to use theCasper child theme.This will ensure that none of your changes will be lost when you update Casper. Install and activate the child theme and make changes as you would normally. Any file included in the theme will override a Casper theme file (exceptions beingfunctions.phpandstyle.css).

If you want to make changes to the core theme, or want to contribute, read below on how to build the package.

Building Casper

Casper is open-source and simple to develop and extend.

Using Grunt to build the package

#Clone and install dependencies

$ git clone https://github /lacymorrow/casper.git
$cdcasper
$ npm install -g grunt-cli
$ npm install


#Build the distribution

$ grunt

orgrunt watchto continuously build.

Grunt Tasks
  • Compilesrc/css/style.lessand other LESS and CSS files insrc/css/
  • Any CSS is combed, linted, prefixed, then compiled withcss/style.css
  • css/style.cssis minified intostyle.css
  • Images insrc/img/are compressed and copied toimg
  • Theme JavaScript and other js files insrc/js/are linted, minified, and combined intojs/main.js
i18n (internationalization)

To generate a.potlanguage file you must have xgettext installed. On OSX using homebrew runbrew install gettext && brew link gettext --forceto install. Rungrunt i18nto generate language files.

Getting Involved

Want to report a bug, request a feature, or help me build this project? The more the merrier! 🐞

Many thanks to theGhost&WordPressteams, as well as theUnderscores _scontributers, andkvendrik.☄️

Built using all of the above. ⛄️

🏎 Roadmap

  • Update Casper WP to match the updated Ghost version -Casper 2!
  • Implement an update mechanism to pull changes from the Ghost project to keep the development in sync

License

GPL v2.0©Lacy Morrow

All assets licensed under a GPL-compatible license.