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

automatically enable "next" and "previous" buttons #2

Open
hannesdatta opened this issue Jan 9, 2021 · 0 comments
Open

automatically enable "next" and "previous" buttons #2

hannesdatta opened this issue Jan 9, 2021 · 0 comments

Comments

@hannesdatta
Copy link

hannesdatta commented Jan 9, 2021

I need a way to show (automatically) "next page" and "previous page" buttons, e.g.

image

algorithm:
if _index.md or index.md file in a folder has the tag on-page-navigation: true

  • show a "next page button" at the end of the page, pointing to the subsequent page (ordered by the page's weight attribute) in the current directory.
  • show a "previous page button" at the end of the page, pointing to the previous page (ordered by page's weight attribute)

if any particular markdown file in the same folder has the attribute (overwrite) on-page-navigation: false, turn off next and previous buttons for that particular page only.

@hannesdatta hannesdatta changed the title automatically enable "next page" buttons automatically enable "next" and "previous" buttons Jan 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant