diff --git a/src/theme/DocItem/index.js b/src/theme/DocItem/index.js index 37371d877..9e040ed8d 100644 --- a/src/theme/DocItem/index.js +++ b/src/theme/DocItem/index.js @@ -237,6 +237,12 @@ export default function DocItem(props) { {JSON.stringify(articleSchema)} )} + {Array.isArray(frontMatter.head) && + frontMatter.head.map((headTag, i) => { + if (!headTag?.tag) return null; + const {tag: tagName, attrs = {}} = headTag; + return React.createElement(tagName, {key: i, ...attrs}); + })}