Layouts in the _default
folder define the major content types and outputs of your Hugo site.
Default Layouts #
The following layouts are typically found in all Hugo sites and likely come with a fresh Hugo theme (hugo theme new themeName
).
template | description | BundleType | |
---|---|---|---|
baseof.html | provides a global “shell” all other templates inherit from. | branch |
|
list.html | renders taxonomy lists (e.g., articles with tags). | branch |
|
terms.html | renders taxonomy terms (e.g., tags). | branch |
|
section.html | renders markdown files in a directory (dir/_index.md ). |
branch |
|
home.html | renders the / page of your site; overrides content/index.md if present. |
leaf |
|
single.html | renders single pages (e.g., articles). | leaf |
Added Layouts #
The following layouts are added by the Milo Docs theme.
template | description | BundleType | frontmatter | |
---|---|---|---|---|
glossary.html | renders markdown files as a stacked list in a directory (dir/_index.md ). |
branch |
layout: glossary |
|
tutorial.html | renders markdown files as a wizard with steps (dir/_index.md ). |
branch |
layout: tutorial |
|
tutorialstep.html | renders a child markdown file as a tutorial step (tutorial/step.md ). |
leaf |
layout: tutStep |