From 62e19d32f7f219d49a6b22819256c8ad9ccfa210 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Wed, 19 Jul 2017 21:55:52 +0200 Subject: [PATCH 1/2] Make compatible with Jekyll >= 3.2 Signed-off-by: Sven Strickroth --- jekyll-multisite.gemspec | 2 +- lib/jekyll-multisite.rb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/jekyll-multisite.gemspec b/jekyll-multisite.gemspec index 9b03c74..327e342 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', '< 3.6' 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) From e67d0890f5d528206c9392c8cfd26d6f827daa93 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Tue, 28 Apr 2020 23:51:35 +0200 Subject: [PATCH 2/2] Multisite seems to week up to jekyll 4.0 Signed-off-by: Sven Strickroth --- jekyll-multisite.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jekyll-multisite.gemspec b/jekyll-multisite.gemspec index 327e342..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.2', '< 3.6' + s.add_runtime_dependency 'jekyll', '>= 3.2', '<= 4.0' end