Skip to content

Commit 8f7a85e

Browse files
author
Sumit Khanna
committed
Removed the need to define shared pagination
1 parent 5de1e42 commit 8f7a85e

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ layouts_dir: _layouts
6767
includes_dir: _includes
6868
plugins_dir: _plugins
6969
shared_dir: _shared
70-
shared_pagination: true
7170
7271
include: ['.htaccess']
7372
@@ -133,4 +132,4 @@ Things to note:
133132
* I had to monkey patch the pagination plugin to work with this setup. You may have to adjust other plugins for multi-site support
134133
* The shared output is actually generated in `_site` and moved after generation is complete
135134
* This entire plugin is very hacky and does some interesting stuff under the hood to get multi-site working.
136-
* Only tested on Jekyll 3.0.1. Other versions will most likely not work.
135+
* Only tested on Jekyll 3.0.1. Other versions will most likely not work.

jekyll-multisite.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Gem::Specification.new do |s|
22

33
s.name = 'jekyll-multisite'
4-
s.version = '0.2'
5-
s.date = '2015-12-11'
4+
s.version = '0.3'
5+
s.date = '2015-12-14'
66
s.summary = 'jekyll-multisite'
77
s.description = 'Plugin for mult-site Jekyll configurations'
88
s.authors = ['Sumit Khanna']

lib/jekyll-multisite.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def paginate(site, page)
153153
if num_page > 1
154154

155155
# Here is our monkey patch
156-
if site.config['shared_pagination'] == true
156+
if File.basename(page.dir) == site.config['shared_dir']
157157
base = File.expand_path(File.join(site.source, '..'))
158158
newpage = Page.new(site, base, page.dir, page.name)
159159
else

0 commit comments

Comments
 (0)