vantagedesign / ace-documentation

A free documentation theme for Hugo, powered by Bootstrap 4. Repsonsive, search, code highlighting and more.

Home Page:https://docs.vantage-design.com/ace/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

next-prev-page has unexpected behavior with last page

jhollowe opened this issue · comments

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

@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.

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.