mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 16:34:39 -04:00
Improve return types
This commit is contained in:
parent
f7d6152671
commit
b053fa09c3
@ -5,7 +5,7 @@ categories: []
|
|||||||
keywords: []
|
keywords: []
|
||||||
action:
|
action:
|
||||||
related: []
|
related: []
|
||||||
returnType: hugolib.pageState
|
returnType: page.Page
|
||||||
signatures: [MENUENTRY.Page]
|
signatures: [MENUENTRY.Page]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ action:
|
|||||||
- methods/page/IsDescendant
|
- methods/page/IsDescendant
|
||||||
- methods/page/Parent
|
- methods/page/Parent
|
||||||
- methods/page/Sections
|
- methods/page/Sections
|
||||||
returnType: hugolib.pageState
|
returnType: page.Page
|
||||||
signatures: [PAGE.CurrentSection]
|
signatures: [PAGE.CurrentSection]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ action:
|
|||||||
- methods/page/IsDescendant
|
- methods/page/IsDescendant
|
||||||
- methods/page/Parent
|
- methods/page/Parent
|
||||||
- methods/page/Sections
|
- methods/page/Sections
|
||||||
returnType: hugolib.pageState
|
returnType: page.Page
|
||||||
signatures: [PAGE.FirstSection]
|
signatures: [PAGE.FirstSection]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ keywords: []
|
|||||||
action:
|
action:
|
||||||
related:
|
related:
|
||||||
- methods/site/GetPage
|
- methods/site/GetPage
|
||||||
returnType: hugolib.pageState
|
returnType: page.Page
|
||||||
signatures: [PAGE.GetPage PATH]
|
signatures: [PAGE.GetPage PATH]
|
||||||
aliases: [/functions/getpage]
|
aliases: [/functions/getpage]
|
||||||
---
|
---
|
||||||
|
@ -10,7 +10,7 @@ action:
|
|||||||
- methods/page/PrevInSection
|
- methods/page/PrevInSection
|
||||||
- methods/pages/Next
|
- methods/pages/Next
|
||||||
- methods/pages/Prev
|
- methods/pages/Prev
|
||||||
returnType: hugolib.pageState
|
returnType: page.Page
|
||||||
signatures: [PAGE.Next]
|
signatures: [PAGE.Next]
|
||||||
toc: true
|
toc: true
|
||||||
---
|
---
|
||||||
|
@ -10,7 +10,7 @@ action:
|
|||||||
- methods/page/Prev
|
- methods/page/Prev
|
||||||
- methods/pages/Next
|
- methods/pages/Next
|
||||||
- methods/pages/Prev
|
- methods/pages/Prev
|
||||||
returnType: hugolib.pageState
|
returnType: page.Page
|
||||||
signatures: [PAGE.NextInSection]
|
signatures: [PAGE.NextInSection]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ categories: []
|
|||||||
keywords: []
|
keywords: []
|
||||||
action:
|
action:
|
||||||
related: []
|
related: []
|
||||||
returnType: hugolib.pageState
|
returnType: page.Page
|
||||||
signatures: [PAGE.Page]
|
signatures: [PAGE.Page]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ action:
|
|||||||
- methods/page/IsAncestor
|
- methods/page/IsAncestor
|
||||||
- methods/page/IsDescendant
|
- methods/page/IsDescendant
|
||||||
- methods/page/Sections
|
- methods/page/Sections
|
||||||
returnType: hugolib.pageState
|
returnType: page.Page
|
||||||
signatures: [PAGE.Parent]
|
signatures: [PAGE.Parent]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ action:
|
|||||||
- methods/page/NextInSection
|
- methods/page/NextInSection
|
||||||
- methods/pages/Prev
|
- methods/pages/Prev
|
||||||
- methods/pages/Next
|
- methods/pages/Next
|
||||||
returnType: hugolib.pageState
|
returnType: page.Page
|
||||||
signatures: [PAGE.Prev]
|
signatures: [PAGE.Prev]
|
||||||
toc: true
|
toc: true
|
||||||
---
|
---
|
||||||
|
@ -10,7 +10,7 @@ action:
|
|||||||
- methods/pages/Next
|
- methods/pages/Next
|
||||||
- methods/page/Prev
|
- methods/page/Prev
|
||||||
- methods/pages/Prev
|
- methods/pages/Prev
|
||||||
returnType: hugolib.pageState
|
returnType: page.Page
|
||||||
signatures: [PAGE.PrevInSection]
|
signatures: [PAGE.PrevInSection]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ action:
|
|||||||
- methods/page/NextInSection
|
- methods/page/NextInSection
|
||||||
- methods/page/Prev
|
- methods/page/Prev
|
||||||
- methods/page/PrevInSection
|
- methods/page/PrevInSection
|
||||||
returnType: hugolib.pageState
|
returnType: page.Page
|
||||||
signatures: [PAGES.Next PAGE]
|
signatures: [PAGES.Next PAGE]
|
||||||
toc: true
|
toc: true
|
||||||
---
|
---
|
||||||
|
@ -10,7 +10,7 @@ action:
|
|||||||
- methods/page/NextInSection
|
- methods/page/NextInSection
|
||||||
- methods/page/Prev
|
- methods/page/Prev
|
||||||
- methods/page/PrevInSection
|
- methods/page/PrevInSection
|
||||||
returnType: hugolib.pageStates
|
returnType: page.Pages
|
||||||
signatures: [PAGES.Prev PAGE]
|
signatures: [PAGES.Prev PAGE]
|
||||||
toc: true
|
toc: true
|
||||||
---
|
---
|
||||||
|
@ -6,7 +6,7 @@ keywords: []
|
|||||||
action:
|
action:
|
||||||
related:
|
related:
|
||||||
- methods/page/GetPage
|
- methods/page/GetPage
|
||||||
returnType: hugolib.pageState
|
returnType: page.Page
|
||||||
signatures: [SITE.GetPage PATH]
|
signatures: [SITE.GetPage PATH]
|
||||||
toc: true
|
toc: true
|
||||||
---
|
---
|
||||||
|
@ -5,7 +5,7 @@ categories: []
|
|||||||
keywords: []
|
keywords: []
|
||||||
action:
|
action:
|
||||||
related: []
|
related: []
|
||||||
returnType: hugolib.pageState
|
returnType: page.Page
|
||||||
signatures: [SITE.Home]
|
signatures: [SITE.Home]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ Count
|
|||||||
: (`int`) Returns the number of pages to which the term is assigned.
|
: (`int`) Returns the number of pages to which the term is assigned.
|
||||||
|
|
||||||
Page
|
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
|
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.
|
: (`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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user