Merge commit '98293eaa1570b5aff4452021c8b6d6c8560b3f06'

This commit is contained in:
Bjørn Erik Pedersen
2018-07-06 17:53:17 +02:00
26 changed files with 270 additions and 56 deletions

View File

@@ -5,7 +5,7 @@ description: Hugo searches for the layout to use for a given page in a well defi
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-05-25
lastmod: 2017-07-05
categories: [templates,fundamentals]
keywords: [templates]
menu:
@@ -32,7 +32,7 @@ Output Format
: See [Custom Output Formats](/templates/output-formats). An output format has both a `name` (e.g. `rss`, `amp`, `html`) and a `suffix` (e.g. `xml`, `html`). We prefer matches with both (e.g. `index.amp.html`, but look for less specific templates.
Language
: We will consider a language code in the template name. If the site language is `fr`, `index.fr.amp.html` will win over `index.amp.html`, but we will `index.amp.html` will be chosen before `index.fr.html`.
: We will consider a language code in the template name. If the site language is `fr`, `index.fr.amp.html` will win over `index.amp.html`, but `index.amp.html` will be chosen before `index.fr.html`.
Layout
: Can be set in page front matter.