diff --git a/lib/jekyll-paginate-v2/autopages/pages/baseAutoPage.rb b/lib/jekyll-paginate-v2/autopages/pages/baseAutoPage.rb index 912da48..196f8d0 100644 --- a/lib/jekyll-paginate-v2/autopages/pages/baseAutoPage.rb +++ b/lib/jekyll-paginate-v2/autopages/pages/baseAutoPage.rb @@ -7,7 +7,7 @@ def initialize(site, base, autopage_config, pagination_config, layout_name, set_ @base = base @name = 'index.html' - layout_dir = '_layouts' + layout_dir = site.config['layouts_dir'] # Path is only used by the convertible module and accessed below when calling read_yaml # Handling themes stored in a gem @@ -57,4 +57,4 @@ def initialize(site, base, autopage_config, pagination_config, layout_name, set_ end #function initialize end #class BaseAutoPage end # module PaginateV2 -end # module Jekyll \ No newline at end of file +end # module Jekyll