Skip to content

Expose a page.content_title attribute#3533

Draft
oprypin wants to merge 9 commits intomasterfrom
titl
Draft

Expose a page.content_title attribute#3533
oprypin wants to merge 9 commits intomasterfrom
titl

Conversation

@oprypin
Copy link

@oprypin oprypin commented Dec 30, 2023

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>

This is only a specific sub-case of `title` but may make more sense to directly use in some cases.
@squidfunk
Copy link
Contributor

This was closed without comment. @oprypin could you please explain why?

@ofek
Copy link

ofek commented Feb 3, 2024

Is this feature blocked on #3357 or are they uncoupled?

@oprypin

This comment was marked as abuse.

@ofek
Copy link

ofek commented Apr 8, 2024

Can this be merged?

@oprypin

This comment was marked as abuse.

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.

Consider changing the precedence of title sources

3 participants