Locally assigned front matter values override things further up the layout chain. Note also that layouts can contain front matter variables that you can use in your local template. Leaf template front matter takes precedence over layout front matter. Read more about Layouts.

permalink: Add in front matter to change the output target of the current template. Normally, you cannot use template syntax for variables in front matter, but permalink is an exception. Read more about Permalinks.