From d140b6a62f56fbbfa79a9a057b7af90a3ecffd3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 27 Jun 2021 01:10:47 +0200 Subject: [PATCH] Update lookup-order.md --- content/en/templates/lookup-order.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content/en/templates/lookup-order.md b/content/en/templates/lookup-order.md index 0d52213c3..e6f46f126 100644 --- a/content/en/templates/lookup-order.md +++ b/content/en/templates/lookup-order.md @@ -34,6 +34,9 @@ Layout 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. +Note that if the output format's Media Type have more than one suffix defined, only the first is considered. + +the 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 `index.amp.html` will be chosen before `index.fr.html`.