Fix typographical errors in lists.md

This commit is contained in:
Ryan Watters 2017-04-14 17:21:48 -05:00
parent e845755601
commit 8f70189a3c
2 changed files with 5 additions and 3 deletions

View File

@ -37,7 +37,7 @@ The [lookup order][lookup] for the homepage template is as follows:
5. `/themes/<THEME>/layouts/_default/list.html`
6. `/themes/<THEME>/layouts/_default/single.html`
## Homepage Content and Front Matter
## Adding Content and Front Matter to the Homepage
The homepage, similar to other [list pages in Hugo][lists], accepts content and front matter from an `_index.md` file. This file should live at the root of your `content` folder (i.e., `content/_index.md`). You can then add body copy and metadata to your homepage the way you would any other content file. See the homepage template below or [Content Organization][contentorg] for more information on the role of `_index.md` for adding content and front matter to list pages.

View File

@ -49,9 +49,11 @@ Since section lists and taxonomy lists (N.B., *not* [taxonomy terms lists][taxte
1. `layouts/_default/taxonomy.html`
2. `themes/<THEME>/layouts/_default/taxonomy.html`
## Adding Content to List Pages
## Adding Content and Front Matter to List Pages
Since v0.18, [everything in Hugo is a `Page`][bepsays]. This means list pages and the homepage can have associated content files---i.e. `_index.md`---that contains page metadata (i.e., front matter) and content. This model allows you to include list-specific front matter via `.Params` and also means that list templates (e.g., `layouts/_default/list.html`) also have access to all [page variables][pagevars].
Since v0.18, [everything in Hugo is a `Page`][bepsays]. This means list pages and the homepage can have associated content files---i.e. `_index.md`---that contain page metadata (i.e., front matter) and content.
This new model allows you to include list-specific front matter via `.Params` and also means that list templates (e.g., `layouts/_default/list.html`) have access to all [page variables][pagevars].
### Example Project Directory