Skip to content

Commit

Permalink
Define @dir and @name separately
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrado committed Feb 2, 2018
1 parent e2e9479 commit baab451
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/jekyll-paginate-v2/generator/paginationPage.rb
Expand Up @@ -14,7 +14,8 @@ def initialize(page_to_copy, cur_page_nr, total_pages, index_pageandext)
@base = ''
@url = ''
if cur_page_nr == 1
@name = page_to_copy.relative_path
@dir = File.dirname(page_to_copy.dir)
@name = page_to_copy.name
else
@name = index_pageandext.nil? ? 'index.html' : index_pageandext
end
Expand Down

0 comments on commit baab451

Please sign in to comment.