mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 16:17:21 +00:00
Fix typographical errors in lists.md
This commit is contained in:
1 parent
e845755601
commit
8f70189a3c
2 files changed
+5
-3
No files matched your search
@@ -37,7 +37,7 @@ The [lookup order][lookup] for the homepage template is as follows:
|
|||||||
5. `/themes/<THEME>/layouts/_default/list.html`
|
5. `/themes/<THEME>/layouts/_default/list.html`
|
||||||
6. `/themes/<THEME>/layouts/_default/single.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.
|
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.
|
||||||
|
|
||||||
|
|||||||
@@ -49,9 +49,11 @@ Since section lists and taxonomy lists (N.B., *not* [taxonomy terms lists][taxte
|
|||||||
1. `layouts/_default/taxonomy.html`
|
1. `layouts/_default/taxonomy.html`
|
||||||
2. `themes/<THEME>/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
|
### Example Project Directory
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user