diff --git a/jekyll-multisite.gemspec b/jekyll-multisite.gemspec index 9b03c74..b73fce7 100644 --- a/jekyll-multisite.gemspec +++ b/jekyll-multisite.gemspec @@ -10,5 +10,5 @@ Gem::Specification.new do |s| s.homepage = 'http://penguindreams.org' s.license = 'GPL-3.0' s.files = ['lib/jekyll-multisite.rb'] - s.add_runtime_dependency 'jekyll', '~> 3.0', '>= 3.0.1' + s.add_runtime_dependency 'jekyll', '>= 3.2', '<= 4.0' end diff --git a/lib/jekyll-multisite.rb b/lib/jekyll-multisite.rb index 943fea1..1648e82 100644 --- a/lib/jekyll-multisite.rb +++ b/lib/jekyll-multisite.rb @@ -100,6 +100,10 @@ def self.sync_dir(cur, base, dest) end end + Jekyll::Hooks.register :site, :after_init do |site| + site.includes_load_paths << File.join(site.source, File.join('../', site.config["includes_dir"].to_s)) + end + Jekyll::Hooks.register :site, :post_write do |site| base_shared = File.basename(site.config['shared_dir']) shared_dir = File.join(site.dest, base_shared)