moved paginate_path to default config

This commit is contained in:
Dane Harrigan 2012-02-26 20:58:14 -08:00
parent 58d8fef7ec
commit 316cc8559c
2 changed files with 12 additions and 11 deletions

View File

@ -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',

View File

@ -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