docs: Update references to _index.md

This commit is contained in:
Ryan Watters 2017-01-04 10:20:01 -06:00 committed by Bjørn Erik Pedersen
parent 49a840be83
commit e856f24129

View file

@ -29,7 +29,7 @@ in Hugo and is used as the [section](/content/sections/).
. .
└── content └── content
└── about └── about
| └── index.md // <- http://1.com/about/ | └── _index.md // <- http://1.com/about/
├── post ├── post
| ├── firstpost.md // <- http://1.com/post/firstpost/ | ├── firstpost.md // <- http://1.com/post/firstpost/
| ├── happy | ├── happy
@ -44,7 +44,7 @@ in Hugo and is used as the [section](/content/sections/).
. .
└── content └── content
└── about └── about
| └── index.md // <- http://1.com/about/ | └── _index.md // <- http://1.com/about/
├── post ├── post
| ├── firstpost.md // <- http://1.com/post/firstpost.html | ├── firstpost.md // <- http://1.com/post/firstpost.html
| ├── happy | ├── happy
@ -62,13 +62,13 @@ site. As displayed above, the organization of the source content will be
mirrored in the destination. mirrored in the destination.
Notice that the first level `about/` page URL was created using a directory Notice that the first level `about/` page URL was created using a directory
named "about" with a single `index.md` file inside. named "about" with a single `_index.md` file inside. Find out more about `_index.md` specifically in [content for the homepage and other list pages](https://gohugo.io/overview/source-directory#content-for-home-page-and-other-list-pages).
There are times when one would need more control over their content. In these There are times when one would need more control over their content. In these
cases, there are a variety of things that can be specified in the front matter cases, there are a variety of things that can be specified in the front matter
to determine the destination of a specific piece of content. to determine the destination of a specific piece of content.
The following items are defined in order, latter items in the list will override The following items are defined in order; latter items in the list will override
earlier settings. earlier settings.
### filename ### filename
@ -84,7 +84,7 @@ The actual path to the file on disk. Destination will create the destination
with the same path. Includes [section](/content/sections/). with the same path. Includes [section](/content/sections/).
### section ### section
`section` is determined by its location on disk and can *not* be specified in the front matter. See [section](/content/sections/). `section` is determined by its location on disk and *cannot* be specified in the front matter. See [section](/content/sections/).
### type ### type
`type` is also determined by its location on disk but, unlike `section`, it *can* be specified in the front matter. See [type](/content/types/). `type` is also determined by its location on disk but, unlike `section`, it *can* be specified in the front matter. See [type](/content/types/).