mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 17:55:16 -04:00
Correction: .Pages on homepage is same as .Site.RegularPages
Ref: https://github.com/gohugoio/hugoDocs/issues/398#issuecomment-371576088
This commit is contained in:
parent
7efa41ff55
commit
bf1405d92b
@ -58,7 +58,7 @@ The following is an example of a homepage template that uses [partial][partials]
|
|||||||
{{.Content}}
|
{{.Content}}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<!-- Note that .Pages is the same as .Site.Pages on the homepage template. -->
|
<!-- Note that .Pages is the same as .Site.RegularPages on the homepage template. -->
|
||||||
{{ range first 10 .Pages }}
|
{{ range first 10 .Pages }}
|
||||||
{{ .Render "summary"}}
|
{{ .Render "summary"}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -58,7 +58,7 @@ When developing a [homepage][], what does one of the pages you're looping throug
|
|||||||
```
|
```
|
||||||
|
|
||||||
{{% note "`.Pages` on the Homepage" %}}
|
{{% note "`.Pages` on the Homepage" %}}
|
||||||
`.Pages` on the homepage is equivalent to `.Site.Pages`.
|
`.Pages` on the homepage is equivalent to `.Site.RegularPages`.
|
||||||
{{% /note %}}
|
{{% /note %}}
|
||||||
|
|
||||||
## Why Am I Showing No Defined Variables?
|
## Why Am I Showing No Defined Variables?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user