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

hugolib: Introduce Page.NextPage and Page.PrevPage #5252

Merged
merged 1 commit into from Sep 26, 2018

Commits on Sep 25, 2018

  1. hugolib: Introduce Page.NextPage and Page.PrevPage

    Introduce new page position variables in order to fix the ordering issue
    of `.Next` and `.Prev` while also allowing an upgrade path via
    deprecation.
    
    `.NextInSection` becomes `.NextPageInSection`.
    `.PrevInSection` becomes `.PrevPageInSection`.
    
    `.Next` becomes a function returning `.PrevPage`.
    `.Prev` becomes a function returning `.NextPage`.
    
    Fixes gohugoio#1061
    felicianotech committed Sep 25, 2018
    Copy the full SHA
    4c5c7c0 View commit details
    Browse the repository at this point in the history