mkdocs icon indicating copy to clipboard operation
mkdocs copied to clipboard

Expose a `page.content_title` attribute

Open oprypin opened this issue 1 year ago • 5 comments

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>
  • Closes #3532

oprypin avatar Dec 30 '23 10:12 oprypin

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

squidfunk avatar Jan 28 '24 06:01 squidfunk

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

ofek avatar Feb 03 '24 20:02 ofek

Uncoupled

oprypin avatar Feb 03 '24 20:02 oprypin

Can this be merged?

ofek avatar Apr 08 '24 01:04 ofek

I didn't merge this because not sure if next maintainers will want to own this code.

oprypin avatar Apr 21 '24 10:04 oprypin