mirror of https://github.com/gohugoio/hugo
922 B
922 B
title | linkTitle | description | categories | keywords |
---|---|---|---|---|
Configure page | Page | Configure page behavior. |
{{< 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:
Next
andPrev
NextInSection
andPrevInSection
This is based on this default site 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
orPrev
methods on aPages
object.