vantagedesign / ace-documentation

A free documentation theme for Hugo, powered by Bootstrap 4. Repsonsive, search, code highlighting and more.
https://docs.vantage-design.com/ace/
MIT License
101 stars 74 forks source link

next-prev-page has unexpected behavior with last page #5

Closed jhollowe closed 4 years ago

jhollowe commented 4 years ago

When on the last page of the site (example from demo site), the navigation footer's "next" link exists and points to the first element of its section. When using nested sections, it displays the first page of the root section.

Example of nested:

layout: (single letter pages are _index.md and double letters are standard pages layout

footer on page BB: footer on page BB

julianflapper commented 4 years ago

@jhollowe Thanks for reporting this. I will look into it showing no "next" when it's the very last page. Though, the behavior may not be so unwanted since it allso makes it possible to go to the next section when at the end of a current section.

In your example, when at page B, it properly displays BB as next, and AA as previous. So that behavior is correct, but I agree that it shouldn't loop back around to AA when at page BB.

julianflapper commented 4 years ago

I'm going to leave this as-is, since in my opinion it is not a very disturbing behavior and may actually be useful when supporting users in browsing the documentation.