Correction: .Pages on homepage is same as .Site.RegularPages

Ref:
https://github.com/gohugoio/hugoDocs/issues/398#issuecomment-371576088
This commit is contained in:
Kaushal Modi 2018-07-16 17:42:49 -04:00
parent 7efa41ff55
commit bf1405d92b
2 changed files with 2 additions and 2 deletions

View File

@ -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 }}

View File

@ -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?