Skip to content

Expose a page.content_title attribute#59

Draft
oprypin wants to merge 10 commits intonextfrom
titl
Draft

Expose a page.content_title attribute#59
oprypin wants to merge 10 commits intonextfrom
titl

Conversation

@oprypin
Copy link
Copy Markdown
Member

@oprypin oprypin commented Mar 20, 2026

Similar to title but prioritizes the title from the document itself over the title specified in the nav config.

For themes, this should be preferred within the <title> tag. To apply the preferred behavior but keep compatibility with older versions, you can use:

<title>{{ page.content_title or page.title }}</title>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant