diff --git a/content/templates/homepage.md b/content/templates/homepage.md index 8b41086a1..0e7ad103a 100644 --- a/content/templates/homepage.md +++ b/content/templates/homepage.md @@ -37,7 +37,7 @@ The [lookup order][lookup] for the homepage template is as follows: 5. `/themes//layouts/_default/list.html` 6. `/themes//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. diff --git a/content/templates/lists.md b/content/templates/lists.md index 6721da1c9..020a1e26d 100644 --- a/content/templates/lists.md +++ b/content/templates/lists.md @@ -49,9 +49,11 @@ Since section lists and taxonomy lists (N.B., *not* [taxonomy terms lists][taxte 1. `layouts/_default/taxonomy.html` 2. `themes//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