mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 09:56:51 +01:00
using _site as output folder
This commit is contained in:
parent
1a3becca04
commit
67efcc04e6
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,3 @@
|
||||
node_modules
|
||||
bower_components
|
||||
generated
|
||||
_site
|
@ -4,7 +4,7 @@ module.exports = function(grunt){
|
||||
// config
|
||||
var gruntConfig = {
|
||||
src: '_src',
|
||||
site: 'generated',
|
||||
site: '_site',
|
||||
assets: {
|
||||
less: 'assets/less',
|
||||
css: 'assets/css',
|
||||
|
@ -18,11 +18,11 @@ Get up and running
|
||||
|
||||
For various reasons the assets build process and Jekyll site generation is managed through Grunt instead of `jekyll` or `rake`.
|
||||
|
||||
Both, `grunt server` and `grunt build`, use [grunt-jekyll](https://github.com/dannygarcia/grunt-jekyll) to first generate the site into the `generated` folder and the following Grunt tasks output into that folder.
|
||||
Both, `grunt server` and `grunt build`, use [grunt-jekyll](https://github.com/dannygarcia/grunt-jekyll) to first generate the site into the `_site` folder and the following Grunt tasks output into that folder.
|
||||
|
||||
The `media` folder holding the source post images is excluded from Jekyll site generation and rsynced around from `_src/_media` to `generated/media` before site generation starts.
|
||||
The `media` folder holding the source post images is excluded from Jekyll site generation and rsynced around from `_src/_media` to `_site/media` before site generation starts.
|
||||
|
||||
Image size generation for post teaser images and photos is done with [jekyll-picture-tag](https://github.com/robwierzbowski/jekyll-picture-tag), putting resized images into `generated/media/gen`.
|
||||
Image size generation for post teaser images and photos is done with [jekyll-picture-tag](https://github.com/robwierzbowski/jekyll-picture-tag), putting resized images into `_site/media/gen`.
|
||||
|
||||
### Install dependencies
|
||||
|
||||
|
@ -43,7 +43,7 @@ redcarpet:
|
||||
# --------------------
|
||||
|
||||
source: ./_src
|
||||
destination: ./generated
|
||||
destination: ./_site
|
||||
exclude: ['less', 'app.js']
|
||||
keep_files: ['media', 'gen']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user