moved paginate_path to default config
This commit is contained in:
parent
58d8fef7ec
commit
316cc8559c
|
@ -65,6 +65,7 @@ module Jekyll
|
||||||
'pygments' => false,
|
'pygments' => false,
|
||||||
'markdown' => 'maruku',
|
'markdown' => 'maruku',
|
||||||
'permalink' => 'date',
|
'permalink' => 'date',
|
||||||
|
'paginate_path' => 'page:num',
|
||||||
|
|
||||||
'markdown_ext' => 'markdown,mkd,mkdn,md',
|
'markdown_ext' => 'markdown,mkd,mkdn,md',
|
||||||
'textile_ext' => 'textile',
|
'textile_ext' => 'textile',
|
||||||
|
|
|
@ -47,7 +47,7 @@ module Jekyll
|
||||||
|
|
||||||
private
|
private
|
||||||
def paginate_path(site, num_page)
|
def paginate_path(site, num_page)
|
||||||
format = site.config['paginate_path'] || "page:num"
|
format = site.config['paginate_path']
|
||||||
format.sub(':num', num_page.to_s)
|
format.sub(':num', num_page.to_s)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue