Boilerplate for Harp with Gulp support, responsive images and a simple blog structure.
harp init my-harp --boilerplate marzeelabs/mz-harp
cd my-harp
npm install
npm install -g gulp harp
so you get the CLIs availableThis will get you a copy of the repository locally and also download all node dependencies such as harp, Gulp, jimp, Browsersync, etc.
In order to serve your local copy of the website, while on the project directory, just do gulp
and everything will be handled for you.
The default task for gulp will:
The default gulp tasks take care of processing the images in various sizes for the responsive image markup, as well as replacing the code in the compiled HTML. All that is required is for the author to add the image files in the _posts-images directory and include the base image (also copied to public/images/posts/) in the post - e.g. alt
For development guidelines, please check the harp documentation at http://harpjs.com/docs/development/
In order to review the static site, this boilerplate is integrated with Heroku's pipelines, which spins up a new site for each pull request and commit.
Made by Marzee Labs