Skip to content

Set page dir so link tag works with pagination pages #226

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/jekyll-paginate-v2/generator/paginationPage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ def initialize(page_to_copy, cur_page_nr, total_pages, index_pageandext)

def set_url(url_value)
@url = url_value

# Set dir now that url has been set, as dir is calculated from the url - dir is in turn used to
# set the relative_path, which we need to link to the pagination page using the link tag
@dir = dir
end
end # class PaginationPage

Expand Down