#bourbonify-jekyll
##Description Simple boilerplate designed for creating Jekyll-based websites. Allows you to quickly start on your project without having to worry about some boring stuff.
By default there are included:
git
, nodejs
, npm
and bower
installed,git clone https://github.com/klapec/jekyll-bourbonify.git
or using a GUI git client) and cd
into it,npm install
,gulp build
to download and install all the assets and build jekyll.gulp
every time you want to start the local development environment.There are few gulp tasks present in the gulpfile.
gulp build
– downloads dependencies (Normalize.css, Bourbon and Neat) using Bower, moves them to assets/src/stylesheets/vendors/
, renames Normalize so that it can be imported by Sass and then builds Jekyll,gulp
(default task) – builds all the assets (stylesheets, scripts, images and SVGs) and begins to watch all the files for changes. It will automatically re-run compilation of changed asset and reload the browser,gulp styles
– handles stylesheets compilation. Uses sass (ruby-sass) to compile Sass into CSS, autoprefixes all the needed vendor prefixes in your CSS files, minifies them and outputs the compiled main.min.css
to assets/dist/stylesheets/
,gulp scripts
– handles JavaScript scripts. It first uses jshint to lint your scripts and check if there are any errors in them, it then concatenates all your scripts into a single file (decreasing HTTP request for performance reasons) and minifies it using uglify
,gulp vendorScripts
– does pretty much the same as the task above. It handles vendor scripts (from assets/src/scripts/vendors/
) but it doesn't run them through linting – we are assuming that those 3rd party scripts were written properly,gulp images
– optimizes your images. Uses imagemin to shrink them in size while not losing too much of quality,gulp svg
– does pretty much the same except for your SVG files. The difference is that it automatically compiles them into a single sprite.svg
file (again, performance reasons). Each of your SVG files can be accessed then in your website easily by an ID of their original name, prefixed by icon-
. Read more about this technique on CSS-Tricks,default.html
layout file. This is necessary because we are changing compiled assets' filenames each time they're rebuilt by appending a new revision hash. And because of this, we can use better browser caching (if the server is correctly set up).├── _includes
│ ├── footer.html
│ └── header.html
├── _layouts
│ ├── default.html
│ ├── page.html
│ └── post.html
├── _posts
│ ├── 2014-09-08-sample-post-1.md
│ └── 2014-09-11-sample-post-2.md
├── assets
│ ├── dist
│ ├── scripts
│ │ ├── main-d41d8cd9.min.js
│ │ └── vendors-6cead6a5.min.js
│ └── stylesheets
│ │ └── main-92a05f0c.min.css
│ └── src
│ │ ├── images
│ │ ├── scripts
│ │ │ ├── vendors
│ │ │ │ └── svg4everybody.js
│ │ │ └── main.js
│ │ ├── stylesheets
│ │ │ ├── base
│ │ │ │ ├── _base.scss
│ │ │ │ ├── _settings.scss
│ │ │ │ └── _typography.scss
│ │ │ ├── components
│ │ │ │ ├── _lists.scss
│ │ │ │ ├── _post.scss
│ │ │ │ └── _posts-list.scss
│ │ │ ├── pages
│ │ │ ├── partials
│ │ │ │ ├── _footer.scss
│ │ │ │ ├── _global.scss
│ │ │ │ └── _header.scss
│ │ │ ├── themes
│ │ │ ├── utils
│ │ │ ├── vendors
│ │ │ └── main.scss
│ │ └── svg
├── LICENSE
├── README.md
├── _config.yml
├── bower.json
├── favicon-192x192.png
├── favicon.ico
├── feed.xml
├── gulpfile.js
├── index.html
├── package.json
├── sample-page.md
└── test-page.md