Skip to content

Expose a page.content_title attribute - #3533

Draft
oprypin wants to merge 9 commits into
masterfrom
titl
Draft

oprypin wants to merge 9 commits into
masterfrom
titl

Conversation

@oprypin

@oprypin oprypin commented Dec 30, 2023 •

Copy link
Copy Markdown

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
Copy Markdown
Contributor

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

@ofek

ofek commented Feb 3, 2024

Copy link
Copy Markdown

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

@oprypin

This comment was marked as abuse.

@ofek

ofek commented Apr 8, 2024

Copy link
Copy Markdown

Can this be merged?

@oprypin

This comment was marked as abuse.

This branch has not been deployed

No deployments
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