Back to Hugo

Configure page

docs/content/en/configuration/page.md

0.161.1811 B
Original Source

{{< new-in 0.133.0 />}}

{{% glossary-term "default sort order" %}}

Hugo uses the default sort order to determine the next and previous page relative to the current page when calling these methods on a Page object:

This is based on this default project configuration:

{{< code-toggle config=page />}}

To reverse the meaning of next and previous:

{{< code-toggle file=hugo >}} [page] nextPrevInSectionSortOrder = 'asc' nextPrevSortOrder = 'asc' {{< /code-toggle >}}

[!note] These settings do not apply to the Next or Prev methods on a Pages object.