Improve return types

This commit is contained in:
Joe Mooring 2024-01-20 14:45:40 -08:00 committed by GitHub
parent f7d6152671
commit b053fa09c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
15 changed files with 15 additions and 15 deletions

View File

@ -5,7 +5,7 @@ categories: []
keywords: []
action:
related: []
returnType: hugolib.pageState
returnType: page.Page
signatures: [MENUENTRY.Page]
---

View File

@ -12,7 +12,7 @@ action:
- methods/page/IsDescendant
- methods/page/Parent
- methods/page/Sections
returnType: hugolib.pageState
returnType: page.Page
signatures: [PAGE.CurrentSection]
---

View File

@ -12,7 +12,7 @@ action:
- methods/page/IsDescendant
- methods/page/Parent
- methods/page/Sections
returnType: hugolib.pageState
returnType: page.Page
signatures: [PAGE.FirstSection]
---

View File

@ -6,7 +6,7 @@ keywords: []
action:
related:
- methods/site/GetPage
returnType: hugolib.pageState
returnType: page.Page
signatures: [PAGE.GetPage PATH]
aliases: [/functions/getpage]
---

View File

@ -10,7 +10,7 @@ action:
- methods/page/PrevInSection
- methods/pages/Next
- methods/pages/Prev
returnType: hugolib.pageState
returnType: page.Page
signatures: [PAGE.Next]
toc: true
---

View File

@ -10,7 +10,7 @@ action:
- methods/page/Prev
- methods/pages/Next
- methods/pages/Prev
returnType: hugolib.pageState
returnType: page.Page
signatures: [PAGE.NextInSection]
---

View File

@ -5,7 +5,7 @@ categories: []
keywords: []
action:
related: []
returnType: hugolib.pageState
returnType: page.Page
signatures: [PAGE.Page]
---

View File

@ -12,7 +12,7 @@ action:
- methods/page/IsAncestor
- methods/page/IsDescendant
- methods/page/Sections
returnType: hugolib.pageState
returnType: page.Page
signatures: [PAGE.Parent]
---

View File

@ -10,7 +10,7 @@ action:
- methods/page/NextInSection
- methods/pages/Prev
- methods/pages/Next
returnType: hugolib.pageState
returnType: page.Page
signatures: [PAGE.Prev]
toc: true
---

View File

@ -10,7 +10,7 @@ action:
- methods/pages/Next
- methods/page/Prev
- methods/pages/Prev
returnType: hugolib.pageState
returnType: page.Page
signatures: [PAGE.PrevInSection]
---

View File

@ -10,7 +10,7 @@ action:
- methods/page/NextInSection
- methods/page/Prev
- methods/page/PrevInSection
returnType: hugolib.pageState
returnType: page.Page
signatures: [PAGES.Next PAGE]
toc: true
---

View File

@ -10,7 +10,7 @@ action:
- methods/page/NextInSection
- methods/page/Prev
- methods/page/PrevInSection
returnType: hugolib.pageStates
returnType: page.Pages
signatures: [PAGES.Prev PAGE]
toc: true
---

View File

@ -6,7 +6,7 @@ keywords: []
action:
related:
- methods/page/GetPage
returnType: hugolib.pageState
returnType: page.Page
signatures: [SITE.GetPage PATH]
toc: true
---

View File

@ -5,7 +5,7 @@ categories: []
keywords: []
action:
related: []
returnType: hugolib.pageState
returnType: page.Page
signatures: [SITE.Home]
---

View File

@ -10,7 +10,7 @@ Count
: (`int`) Returns the number of pages to which the term is assigned.
Page
: (`hugolib.pageState`) Returns the term's `Page` object, useful for linking to the term page.
: (`page.Page`) Returns the term's `Page` object, useful for linking to the term page.
Pages
: (`page.Pages`) Returns a `Pages` object containing the `Page` objects to which the term is assigned, sorted by [taxonomic weight]. To sort or group, use any of the [methods] available to the `Pages` object. For example, sort by the last modification date.