Skip to content

Commit

Permalink
Improve return types
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring authored Jan 20, 2024
1 parent f7d6152 commit b053fa0
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion content/en/methods/menu-entry/Page.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ categories: []
keywords: []
action:
related: []
returnType: hugolib.pageState
returnType: page.Page
signatures: [MENUENTRY.Page]
---

Expand Down
2 changes: 1 addition & 1 deletion content/en/methods/page/CurrentSection.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ action:
- methods/page/IsDescendant
- methods/page/Parent
- methods/page/Sections
returnType: hugolib.pageState
returnType: page.Page
signatures: [PAGE.CurrentSection]
---

Expand Down
2 changes: 1 addition & 1 deletion content/en/methods/page/FirstSection.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ action:
- methods/page/IsDescendant
- methods/page/Parent
- methods/page/Sections
returnType: hugolib.pageState
returnType: page.Page
signatures: [PAGE.FirstSection]
---

Expand Down
2 changes: 1 addition & 1 deletion content/en/methods/page/GetPage.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords: []
action:
related:
- methods/site/GetPage
returnType: hugolib.pageState
returnType: page.Page
signatures: [PAGE.GetPage PATH]
aliases: [/functions/getpage]
---
Expand Down
2 changes: 1 addition & 1 deletion content/en/methods/page/Next.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
Expand Down
2 changes: 1 addition & 1 deletion content/en/methods/page/NextInSection.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ action:
- methods/page/Prev
- methods/pages/Next
- methods/pages/Prev
returnType: hugolib.pageState
returnType: page.Page
signatures: [PAGE.NextInSection]
---

Expand Down
2 changes: 1 addition & 1 deletion content/en/methods/page/Page.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ categories: []
keywords: []
action:
related: []
returnType: hugolib.pageState
returnType: page.Page
signatures: [PAGE.Page]
---

Expand Down
2 changes: 1 addition & 1 deletion content/en/methods/page/Parent.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ action:
- methods/page/IsAncestor
- methods/page/IsDescendant
- methods/page/Sections
returnType: hugolib.pageState
returnType: page.Page
signatures: [PAGE.Parent]
---

Expand Down
2 changes: 1 addition & 1 deletion content/en/methods/page/Prev.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
Expand Down
2 changes: 1 addition & 1 deletion content/en/methods/page/PrevInSection.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ action:
- methods/pages/Next
- methods/page/Prev
- methods/pages/Prev
returnType: hugolib.pageState
returnType: page.Page
signatures: [PAGE.PrevInSection]
---

Expand Down
2 changes: 1 addition & 1 deletion content/en/methods/pages/Next.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
Expand Down
2 changes: 1 addition & 1 deletion content/en/methods/pages/Prev.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
Expand Down
2 changes: 1 addition & 1 deletion content/en/methods/site/GetPage.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords: []
action:
related:
- methods/page/GetPage
returnType: hugolib.pageState
returnType: page.Page
signatures: [SITE.GetPage PATH]
toc: true
---
Expand Down
2 changes: 1 addition & 1 deletion content/en/methods/site/Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ categories: []
keywords: []
action:
related: []
returnType: hugolib.pageState
returnType: page.Page
signatures: [SITE.Home]
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b053fa0

Please sign in to comment.