This is the personal website for Jesse Campbell, built using Jekyll and Gulp, with Siteleaf integrated for content management.
- Make sure Bundler and Jekyll are installed.
gem install bundler
gem install jekyll
- Clone the repo
- Run
bundle install
- Make sure node.js and npm are installed. For npm, you should be running at least major version 3.
- To update npm to the latest version, run
npm install npm@latest -g
- To update npm to the latest version, run
- Install gulp globally.
npm install -g gulp
- Make sure ImageMagick is installed.
brew install imagemagick
should work on OSX
- Run
npm install
to install node modules.
If you do not have Gulp installed locally then you can install it globally via npm install -g gulp
. If needed, run npm install
to install any modules that were added since you last served the site. To serve the site, run gulp serve
. This uses the _config.local.yml
for local development.
Thanks to gulp.watch
and Browsersync, any changes you make will trigger Gulp to either regenerate the Jekyll site and automatically refresh your browser or, if they're changes to CSS or images, inject the updated file(s) so a refresh isn't needed.
You can toggle some options in gulpfile.js
:
- In the
serve
task, changeghostMode
totrue
if you want to mirror clicks, reloads, etc. across browsers. Useful for testing, hard on performance. - In the
serve
task, changeopen
tofalse
if you don't want Browsersync to automatically open a browser window for you when you serve the site.