mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
0cf85c071a
commit
14a985f8ab
1 changed files with 0 additions and 4 deletions
|
@ -36,10 +36,6 @@ The homepage, similar to other [list pages in Hugo][lists], accepts content and
|
||||||
|
|
||||||
See the homepage template below or [Content Organization][contentorg] for more information on the role of `_index.md` in adding content and front matter to list pages.
|
See the homepage template below or [Content Organization][contentorg] for more information on the role of `_index.md` in adding content and front matter to list pages.
|
||||||
|
|
||||||
## `.Pages` on the Homepage
|
|
||||||
|
|
||||||
In addition to the standard [page variables][pagevars], the homepage template has access to *all* site content via `.Pages`.
|
|
||||||
|
|
||||||
## Example Homepage Template
|
## Example Homepage Template
|
||||||
|
|
||||||
The following is an example of a homepage template that uses [partial][partials], [base][] templates, and a content file at `content/_index.md` to populate the `{{.Title}}` and `{{.Content}}` [page variables][pagevars].
|
The following is an example of a homepage template that uses [partial][partials], [base][] templates, and a content file at `content/_index.md` to populate the `{{.Title}}` and `{{.Content}}` [page variables][pagevars].
|
||||||
|
|
Loading…
Reference in a new issue