Skip to content
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

Add a '/' to paginate_path in the Documentation on the Pagination page #3479

Merged
merged 1 commit into from Feb 18, 2015
Merged

Add a '/' to paginate_path in the Documentation on the Pagination page #3479

merged 1 commit into from Feb 18, 2015

Commits on Feb 18, 2015

  1. Add a '/' to paginate_path

    If this '/' is not present, then the second pagination code snippet
    under the "Render the paginated Posts" section will have a bug.
    
    Let's say my page 1 is located at host:port/blog/index.html and my
    paginate_path setting in _config.yml is "blog/page:num/". The
    observation if the paginate_path does not start with a '/' is that the href generated for the page numbers will have 2 'blogs', i.e. for page 2 the href will
    incorrectly appear as 'host:port/blog/blog/page2' instead of just
    'host:port/blog/page2'.
    tuzhucheng committed Feb 18, 2015
    Copy the full SHA
    705fdfb View commit details
    Browse the repository at this point in the history