The title_meta
field in doc front matter is ignored
#10878
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
The
title_meta
field, as documented in the docs, should allow overridingfrontMatter.title
for SEO purposes. However, it doesn't work for doc pages, while it does work correctly for blog posts.Reproducible demo
No response
Steps to reproduce
Create a new doc page with the following front matter
Check the page's title in the browser or inspect the meta tags.
Expected behavior
The title should use
title_meta
instead oftitle
, as described in the docs:Actual behavior
The
title_meta
field is ignored, and the <title> tag or og:title still usetitle
instead.Your environment
No response
Self-service
The text was updated successfully, but these errors were encountered: