Next / Previous Links
For navigation menus that are ordered it is a good user experience (UX) to provide links to the next and previous pages in the sequence.
Because this is a common requirement we created the std::menu plugin which provides the next-page
, prev-page
and next-prev
partials.
To use these partials first add the plugin to your project [dependencies]
in site.toml
:
= { = "~1", = { = [ "**" ] } }
Afterwards, you can use the partials passing the name of a menu as the source for the navigation list, for example:
info
Only use these sequential navigation partials on pages that exist in the menu definition otherwise nothing will be rendered!