mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
Merge commit '346b60358dd8ec2ca228e6635bff9d7914b398b7'
This commit is contained in:
@@ -11,7 +11,7 @@ action:
|
||||
signatures: [PAGE.RegularPages]
|
||||
---
|
||||
|
||||
The `RegularPages` method on a `Page` object is available to these [page kinds]: `home`, `section`, `taxonomy`, and `term`. The templates for these page kinds receive a page [collection] in [context].
|
||||
The `RegularPages` method on a `Page` object is available to these [page kinds](g): `home`, `section`, `taxonomy`, and `term`. The templates for these page kinds receive a page [collection](g) in [context](g).
|
||||
|
||||
Range through the page collection in your template:
|
||||
|
||||
@@ -67,7 +67,7 @@ When rendering lesson-2, the `RegularPages` method returns:
|
||||
lessons/lesson-2/resources/task-list.md
|
||||
lessons/lesson-2/resources/worksheet.md
|
||||
|
||||
In the last example, the collection includes pages in the resources subdirectory. That directory is not a [section]---it does not contain an _index.md file. Its contents are part of the lesson-2 section.
|
||||
In the last example, the collection includes pages in the resources subdirectory. That directory is not a [section](g)---it does not contain an _index.md file. Its contents are part of the lesson-2 section.
|
||||
|
||||
{{% note %}}
|
||||
When used with the `Site` object, the `RegularPages` method recursively returns all regular pages within the site. See [details].
|
||||
@@ -80,8 +80,3 @@ When used with the `Site` object, the `RegularPages` method recursively returns
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
||||
{{ end }}
|
||||
```
|
||||
|
||||
[collection]: /getting-started/glossary/#collection
|
||||
[context]: /getting-started/glossary/#context
|
||||
[page kinds]: /getting-started/glossary/#page-kind
|
||||
[section]: /getting-started/glossary/#section
|
||||
|
Reference in New Issue
Block a user