Avoiding autopages from jekyll paginate v2 to be indexed
This commit is contained in:
parent
464bcc3415
commit
0f4ac2419f
@ -260,6 +260,10 @@ module Jekyll
|
||||
config['pagination'] = {} unless config['pagination'].is_a?(Hash)
|
||||
config['pagination']['enabled'] = false
|
||||
|
||||
# Disable autopages for jekyll-paginate-v2
|
||||
config['autopages'] = {} unless config['autopages'].is_a?(Hash)
|
||||
config['autopages']['enabled'] = false
|
||||
|
||||
# Disable tags from jekyll-tagging
|
||||
config['tag_page_dir'] = nil
|
||||
config['tag_page_layout'] = nil
|
||||
|
||||
@ -456,6 +456,20 @@ describe(Jekyll::Algolia::Configurator) do
|
||||
end
|
||||
end
|
||||
|
||||
context 'disable autopes for jekyll-paginate-v2' do
|
||||
context 'with no pagination key' do
|
||||
it { should include('autopages' => { 'enabled' => false }); }
|
||||
end
|
||||
context 'with a pagination key' do
|
||||
let(:config) { { 'autopages' => { 'foo' => 'bar' } } }
|
||||
it {
|
||||
should include(
|
||||
'autopages' => { 'foo' => 'bar', 'enabled' => false }
|
||||
)
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
context 'disable jekyll-tagging' do
|
||||
it { should include('tag_page_dir' => nil) }
|
||||
it { should include('tag_page_layout' => nil) }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user