Skip to content

Unsure on how exactly to add a script tag #9991

Answered by slorber
Zenahr asked this question in Q&A
Discussion options

You must be logged in to vote

If you think there's a bug, show it with a repro.
It's possible there is a bug, but unless a repro is provided it's not proven.

Afaik headTags are not a themeConfig attribute but a siteConfig attribute. It might just be a docs typo on the SEO docs page.
https://docusaurus.io/docs/next/api/docusaurus-config#headTags

themeConfig.metadata should work

<Head> is not deprecated. You can achieve the same result in multiple ways according to your need. <Head> is the most granular and can be applied on a per-page basis

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@Zenahr
Comment options

@slorber
Comment options

@Zenahr
Comment options

@slorber
Comment options

Answer selected by Zenahr
@Zenahr
Comment options

@slorber
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants