This is a clean base for starting Jekyll static site projects using Zurb Foundation 6. This setup is designed more for a standard static website (eg. landing site, company website, etc.) and less for a blogging site. This can definitely be modified to be used as a Jekyll blog, if desired - but that wasn't my intention with this.
This is using...
We use Bundler to manage a bunch of the project assets and requirements, so you need to make sure you have that installed.
You can install it by running:
gem install bundler
We use Bower to manage the rest of the project assets.
You can install it by running:
npm install -g bower
Since we Bundler and Bower, this is super easy. All of the project requirements are detailed in the project's Gemfile
and bower.json
files.
Just run the following command:
bundle install
Or if you don't want to deploy to S3:
bundle install --without deploy
Then install the remaining requirements with the following:
bower install
Jekyll comes shipped with a development server and we use Jekyll Assets to manage all of our assets, so... just go at it... bro.
serve
fires up a server at http://127.0.0.1:4000 and starts watching for file changes. Just make your changes and head over to your browser.
jekyll serve
build
simply compiles your assets and generates your website - no server, no watching.
jekyll build
...or watching:
jekyll build --watch
Once you're ready to deploy, make sure to run jekyll build
first to clean out any old or cached asset files, then follow on of the following instructions:
Deploying to S3 is easypeezy with S3 Website.
Edit the s3_website.yml
with your S3 information.
Run the following command and all will be live:
s3_website push
All of the compiled and generated files reside in the _site
directory. Simply toss all of the files in _site
, as is, to whatever hosting platform you're using (via FTP,
SSH, etc.) and you're done!
Something note worthy:
I use DOM-based Javascript routing based on http://goo.gl/EUTi53 by Paul Irish. It's pretty neat stuff. I actually snagged it from Roots.io who snagged the concept from Paul Irish.
This package is licensed under the terms of the MIT license.