- /
-
- Front Matter /
- Title - Front Matter
Title - Front Matter
How to just add a title to a page
Last modified 2025-05-12
ITADS
Page title is displayed following these ordered priorities:
- By default page title the Eleventy page
inputPath
if nothing is set into the front matter. - If
eleventyNavigation.key
is set into the front matter, page title gets this value. - If
title
is set into front matter, it overrideseleventyNavigation.key
as title for the page.
No title case
With the following example, input path is used as title.
layout: libdoc_page
Title case without primary navigation
Into the following example, a title is set into the page header but the page is not linked into the primary navigation.
layout: libdoc_page
title: Just added title to front matter
Title case with primary navigation
Into the following case, the title of the page is the value of eleventyNavigation.key
layout: libdoc_page
eleventyNavigation:
key: A title with an item into the primary navigation
Title case with primary navigation and override
Into the following case, the title of the page is the value of title
overriding eleventyNavigation.key
. Into the primary navigation, link text remains Title key
.
layout: libdoc_page
eleventyNavigation:
key: Title key
title: A title with an item into the primary navigation