Merge pull request #3017 from glaucocustodio/master

This commit is contained in:
Parker Moore 2014-10-20 09:57:04 -07:00
commit c77d06446d
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ module Jekyll
def deep_merge_hashes(master_hash, other_hash)
target = master_hash.dup
other_hash.keys.each do |key|
other_hash.each_key do |key|
if other_hash[key].is_a? Hash and target[key].is_a? Hash
target[key] = Utils.deep_merge_hashes(target[key], other_hash[key])
next

View File

@ -122,7 +122,7 @@ module Jekyll
def generate(site)
if site.layouts.key? 'category_index'
dir = site.config['category_dir'] || 'categories'
site.categories.keys.each do |category|
site.categories.each_key do |category|
site.pages << CategoryPage.new(site, site.source, File.join(dir, category), category)
end
end