-
Notifications
You must be signed in to change notification settings - Fork 5
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
Differentiate between top and bottom prev/next buttons #148
Comments
The "relbars" can already be activated and deactivated individually using the This affects all pages, but you might be able to get per-page settings with some additional Jinja2 magic? |
Thanks, I overlooked this. It is indeed straightforward, the {% extends "!layout.html" %}
{% block relbar1 %}{% endblock %} to disable the top next /prev buttons. |
Indeed, the |
The current solution seems fine to me. You can close this issue if you like as I don't think it is necessary to provide the functionality of automatically adjusting the visibility of the top and/or bottom prev/next buttons. |
If a documentation contains a lot of short pages it looks a little bit weird that we have prev/next buttons at the top and the bottom, e.g.
One solution might be to automatically adjust if we present the buttons at the top depending on the page length.
An easier solution would be to provide different CSS classes for them so a user could write custom CSS code to hide one occurrences of the next/prev buttons. At the moment this is not possible as they are both added to the page with the
relbar
class. Maybe one could add an additionaltop
andbottom
class to them, e.g.The text was updated successfully, but these errors were encountered: