mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-12 17:44:48 -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}}
|
||||
</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 }}
|
||||
{{ .Render "summary"}}
|
||||
{{ end }}
|
||||
|
@ -58,7 +58,7 @@ When developing a [homepage][], what does one of the pages you're looping throug
|
||||
```
|
||||
|
||||
{{% note "`.Pages` on the Homepage" %}}
|
||||
`.Pages` on the homepage is equivalent to `.Site.Pages`.
|
||||
`.Pages` on the homepage is equivalent to `.Site.RegularPages`.
|
||||
{{% /note %}}
|
||||
|
||||
## Why Am I Showing No Defined Variables?
|
||||
|
Loading…
x
Reference in New Issue
Block a user