Skip to content
A fork of ghost's theme casper: Slimer!
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.storybook
scripts
site
src
.eslintrc.json
.gitignore
.nvmrc
.prettierrc
.travis.yml
LICENSE
Makefile
README.md
package-lock.json
package.json
postcss.config.js
stencil.config.ts
webpack.base.config.js
webpack.dev.config.js
webpack.prod.config.js

README.md

Slimer

Slimer is a fork of Ghost's theme Casper built for Hugo static site generator. I'm not that good at porting things, but I'm remarkably good at copy-paste, so I've used hugo-casper-two as base and try not to break it too much 😅.

Structure

There are two layers on this theme, the HTML+CSS and the Web Components. The different script allow to work on specific part in isolation for easier development

Installation

To run the whole thing locally a few bits are needed:

To run the site open two terminals/pane/split and run in one

npm run start:hugo

and in the other one

npm run dev

the whole theme with fake content and hot-reloading will be available at http://localhost:3000

To run the webcomponents stack open two terminals/pane/split and run in one

npm run components:start

and in the other one

npm run storybook

The storybook app will be running at http://localhost:9001, it'll autoload all the files called stories.js in all the different components.

Test

For now tests are only available for web componentes as they are the only place with some logic, once the theme is completed visual tests will be added for the critical paths.

Other Credits

Some of the default pictures are from Unsplash:

License

This repo in licensed un the MIT license, so is Casper and hugo-casper-two.

You can’t perform that action at this time.