mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Merge commit '8b9803425e63e1b1801f8d5d676e96368d706722'
This commit is contained in:
@@ -7,7 +7,7 @@ cascade:
|
||||
---
|
||||
|
||||
<!--
|
||||
Files within this headless branch bundle are markdown snippets. Each file must contain front matter delimiters, though front matter fields are not required.
|
||||
Files within this headless branch bundle are Markdown snippets. Each file must contain front matter delimiters, though front matter fields are not required.
|
||||
|
||||
Include the rendered content using the "include" shortcode.
|
||||
-->
|
||||
|
@@ -9,10 +9,10 @@ The `Next` and `Prev` methods on a `Pages` object are more flexible than the `Ne
|
||||
[`PAGES.Next`] and [`PAGES.Prev`]|locally defined|✔️
|
||||
[`PAGE.Next`] and [`PAGE.Prev`]|globally defined|❌
|
||||
|
||||
[`PAGES.Next`]: /methods/pages/next
|
||||
[`PAGES.Prev`]: /methods/pages/prev
|
||||
[`PAGE.Next`]: /methods/page/next
|
||||
[`PAGE.Prev`]: /methods/page/prev
|
||||
[`PAGES.Next`]: /methods/pages/next/
|
||||
[`PAGES.Prev`]: /methods/pages/prev/
|
||||
[`PAGE.Next`]: /methods/page/next/
|
||||
[`PAGE.Prev`]: /methods/page/prev/
|
||||
|
||||
locally defined
|
||||
: Build the page collection every time you call `PAGES.Next` and `PAGES.Prev`. Navigation between pages is relative to the current page's position within the local collection, independent of the global collection.
|
||||
@@ -31,7 +31,7 @@ With a global collection, the navigation sort order is fixed, using Hugo's defau
|
||||
|
||||
For example, with a global collection sorted by title, the navigation sort order will use Hugo's default sort order. This is probably not what you want or expect. For this reason, the `Next` and `Prev` methods on a `Pages` object are generally a better choice.
|
||||
|
||||
[date]: /methods/page/date
|
||||
[weight]: /methods/page/weight
|
||||
[linkTitle]: /methods/page/linktitle
|
||||
[title]: /methods/page/title
|
||||
[date]: /methods/page/date/
|
||||
[weight]: /methods/page/weight/
|
||||
[linkTitle]: /methods/page/linktitle/
|
||||
[title]: /methods/page/title/
|
||||
|
Reference in New Issue
Block a user