Skip to content

Commit

Permalink
feat(jekyll): add config.user.js support
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Now you can define your custom config in `config.user.js` without touching the built-in configuration.
  • Loading branch information
sparanoid committed Sep 29, 2015
1 parent b6d3b7b commit 555a5db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,13 @@ module.exports = (grunt) ->

serve:
options:
config: "_config.yml,_amsf/_config.yml,<%= config.app %>/_data/<%= amsf.theme.current %>.yml,_config.dev.yml"
config: "_config.yml,_amsf/_config.yml,<%= config.app %>/_data/<%= amsf.theme.current %>.yml,_config.dev.yml,_config.user.yml"
drafts: true
future: true

dist:
options:
config: "_config.yml,_amsf/_config.yml,<%= config.app %>/_data/<%= amsf.theme.current %>.yml"
config: "_config.yml,_amsf/_config.yml,<%= config.app %>/_data/<%= amsf.theme.current %>.yml,_config.user.yml"
dest: "<%= config.dist %><%= config.base %>"

shell:
Expand Down
3 changes: 3 additions & 0 deletions _config.user.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#
# Jekyll user configurations
#

0 comments on commit 555a5db

Please sign in to comment.