mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'
This commit is contained in:
@@ -3,16 +3,10 @@ title: First
|
||||
description: Returns the first pager in the pager collection.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/pager/Last
|
||||
- methods/pager/Prev
|
||||
- methods/pager/Next
|
||||
- methods/pager/HasPrev
|
||||
- methods/pager/HasNext
|
||||
- methods/page/Paginate
|
||||
returnType: page.Pager
|
||||
signatures: [PAGER.First]
|
||||
params:
|
||||
functions_and_methods:
|
||||
returnType: page.Pager
|
||||
signatures: [PAGER.First]
|
||||
---
|
||||
|
||||
Use the `First` method to build navigation between pagers.
|
||||
|
@@ -3,16 +3,10 @@ title: HasNext
|
||||
description: Reports whether there is a pager after the current pager.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/pager/HasPrev
|
||||
- methods/pager/Prev
|
||||
- methods/pager/Next
|
||||
- methods/pager/First
|
||||
- methods/pager/Last
|
||||
- methods/page/Paginate
|
||||
returnType: bool
|
||||
signatures: [PAGER.HasNext]
|
||||
params:
|
||||
functions_and_methods:
|
||||
returnType: bool
|
||||
signatures: [PAGER.HasNext]
|
||||
---
|
||||
|
||||
Use the `HasNext` method to build navigation between pagers.
|
||||
|
@@ -3,16 +3,10 @@ title: HasPrev
|
||||
description: Reports whether there is a pager before the current pager.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/pager/HasNext
|
||||
- methods/pager/Prev
|
||||
- methods/pager/Next
|
||||
- methods/pager/First
|
||||
- methods/pager/Last
|
||||
- methods/page/Paginate
|
||||
returnType: bool
|
||||
signatures: [PAGER.HasPrev]
|
||||
params:
|
||||
functions_and_methods:
|
||||
returnType: bool
|
||||
signatures: [PAGER.HasPrev]
|
||||
---
|
||||
|
||||
Use the `HasPrev` method to build navigation between pagers.
|
||||
|
@@ -3,16 +3,10 @@ title: Last
|
||||
description: Returns the last pager in the pager collection.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/pager/First
|
||||
- methods/pager/Prev
|
||||
- methods/pager/Next
|
||||
- methods/pager/HasPrev
|
||||
- methods/pager/HasNext
|
||||
- methods/page/Paginate
|
||||
returnType: page.Pager
|
||||
signatures: [PAGER.Last]
|
||||
params:
|
||||
functions_and_methods:
|
||||
returnType: page.Pager
|
||||
signatures: [PAGER.Last]
|
||||
---
|
||||
|
||||
Use the `Last` method to build navigation between pagers.
|
||||
|
@@ -3,16 +3,10 @@ title: Next
|
||||
description: Returns the next pager in the pager collection.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/pager/Prev
|
||||
- methods/pager/HasPrev
|
||||
- methods/pager/HasNext
|
||||
- methods/pager/First
|
||||
- methods/pager/Last
|
||||
- methods/page/Paginate
|
||||
returnType: page.Pager
|
||||
signatures: [PAGER.Next]
|
||||
params:
|
||||
functions_and_methods:
|
||||
returnType: page.Pager
|
||||
signatures: [PAGER.Next]
|
||||
---
|
||||
|
||||
Use the `Next` method to build navigation between pagers.
|
||||
|
@@ -3,12 +3,10 @@ title: NumberOfElements
|
||||
description: Returns the number of pages in the current pager.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/pager/TotalNumberOfElements
|
||||
- methods/page/Paginate
|
||||
returnType: int
|
||||
signatures: [PAGER.NumberOfElements]
|
||||
params:
|
||||
functions_and_methods:
|
||||
returnType: int
|
||||
signatures: [PAGER.NumberOfElements]
|
||||
---
|
||||
|
||||
```go-html-template
|
||||
|
@@ -3,11 +3,10 @@ title: PageGroups
|
||||
description: Returns the page groups in the current pager.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/page/Paginate
|
||||
returnType: page.PagesGroup
|
||||
signatures: [PAGER.PageGroups]
|
||||
params:
|
||||
functions_and_methods:
|
||||
returnType: page.PagesGroup
|
||||
signatures: [PAGER.PageGroups]
|
||||
---
|
||||
|
||||
Use the `PageGroups` method with any of the [grouping methods].
|
||||
|
@@ -3,12 +3,10 @@ title: PageNumber
|
||||
description: Returns the current pager's number within the pager collection.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/pager/TotalPages
|
||||
- methods/page/Paginate
|
||||
returnType: int
|
||||
signatures: [PAGER.PageNumber]
|
||||
params:
|
||||
functions_and_methods:
|
||||
returnType: int
|
||||
signatures: [PAGER.PageNumber]
|
||||
---
|
||||
|
||||
Use the `PageNumber` method to build navigation between pagers.
|
||||
|
@@ -3,15 +3,15 @@ title: PageSize
|
||||
description: Returns the number of pages per pager.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related: []
|
||||
returnType: int
|
||||
signatures: [PAGER.PageSize]
|
||||
params:
|
||||
functions_and_methods:
|
||||
returnType: int
|
||||
signatures: [PAGER.PageSize]
|
||||
expiryDate: 2026-06-09 # deprecated 2024-06-09 in v0.128.0
|
||||
---
|
||||
|
||||
{{% deprecated-in 0.128.0 %}}
|
||||
{{< deprecated-in 0.128.0 >}}
|
||||
Use [`PAGER.PagerSize`] instead.
|
||||
|
||||
[`PAGER.PagerSize`]: /methods/pager/pagersize/
|
||||
{{% /deprecated-in %}}
|
||||
{{< /deprecated-in >}}
|
||||
|
@@ -3,11 +3,10 @@ title: PagerSize
|
||||
description: Returns the number of pages per pager.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/page/Paginate
|
||||
returnType: int
|
||||
signatures: [PAGER.PagerSize]
|
||||
params:
|
||||
functions_and_methods:
|
||||
returnType: int
|
||||
signatures: [PAGER.PagerSize]
|
||||
---
|
||||
|
||||
{{< new-in 0.128.0 />}}
|
||||
|
@@ -3,11 +3,10 @@ title: Pagers
|
||||
description: Returns the pagers collection.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/page/Paginate
|
||||
returnType: page.pagers
|
||||
signatures: [PAGER.Pagers]
|
||||
params:
|
||||
functions_and_methods:
|
||||
returnType: page.pagers
|
||||
signatures: [PAGER.Pagers]
|
||||
---
|
||||
|
||||
Use the `Pagers` method to build navigation between pagers.
|
||||
|
@@ -3,11 +3,10 @@ title: Pages
|
||||
description: Returns the pages in the current pager.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/page/Paginate
|
||||
returnType: page.Pages
|
||||
signatures: [PAGER.Pages]
|
||||
params:
|
||||
functions_and_methods:
|
||||
returnType: page.Pages
|
||||
signatures: [PAGER.Pages]
|
||||
---
|
||||
|
||||
```go-html-template
|
||||
|
@@ -3,16 +3,10 @@ title: Prev
|
||||
description: Returns the previous pager in the pager collection.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/pager/Next
|
||||
- methods/pager/HasPrev
|
||||
- methods/pager/HasNext
|
||||
- methods/pager/First
|
||||
- methods/pager/Last
|
||||
- methods/page/Paginate
|
||||
returnType: page.Pager
|
||||
signatures: [PAGER.Prev]
|
||||
params:
|
||||
functions_and_methods:
|
||||
returnType: page.Pager
|
||||
signatures: [PAGER.Prev]
|
||||
---
|
||||
|
||||
Use the `Prev` method to build navigation between pagers.
|
||||
|
@@ -3,12 +3,10 @@ title: TotalNumberOfElements
|
||||
description: Returns the number of pages in the pager collection.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/pager/NumberOfElements
|
||||
- methods/page/Paginate
|
||||
returnType: int
|
||||
signatures: [PAGER.TotalNumberOfElements]
|
||||
params:
|
||||
functions_and_methods:
|
||||
returnType: int
|
||||
signatures: [PAGER.TotalNumberOfElements]
|
||||
---
|
||||
|
||||
```go-html-template
|
||||
|
@@ -3,12 +3,10 @@ title: TotalPages
|
||||
description: Returns the number of pagers in the pager collection.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/pager/PageNumber
|
||||
- methods/page/Paginate
|
||||
returnType: int
|
||||
signatures: [PAGER.TotalPages]
|
||||
params:
|
||||
functions_and_methods:
|
||||
returnType: int
|
||||
signatures: [PAGER.TotalPages]
|
||||
---
|
||||
|
||||
Use the `TotalPages` method to build navigation between pagers.
|
||||
|
@@ -3,11 +3,10 @@ title: URL
|
||||
description: Returns the URL of the current pager relative to the site root.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/page/Paginate
|
||||
returnType: string
|
||||
signatures: [PAGER.URL]
|
||||
params:
|
||||
functions_and_methods:
|
||||
returnType: string
|
||||
signatures: [PAGER.URL]
|
||||
---
|
||||
|
||||
Use the `URL` method to build navigation between pagers.
|
||||
|
@@ -1,14 +1,6 @@
|
||||
---
|
||||
title: Pager methods
|
||||
linkTitle: Pager
|
||||
description: Use these methods with Pager objects when paginating a list page.
|
||||
description: Use these methods with Pager objects when building navigation for a paginated list page.
|
||||
keywords: []
|
||||
menu:
|
||||
docs:
|
||||
identifier:
|
||||
parent: methods
|
||||
---
|
||||
|
||||
Use these methods with Pager objects when building navigation for a [paginated] list page.
|
||||
|
||||
[paginated]: /templates/pagination/
|
||||
|
Reference in New Issue
Block a user