diff options
Diffstat (limited to 'website/src/components/Head.astro')
| -rw-r--r-- | website/src/components/Head.astro | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/website/src/components/Head.astro b/website/src/components/Head.astro new file mode 100644 index 00000000..b1214cb1 --- /dev/null +++ b/website/src/components/Head.astro @@ -0,0 +1,9 @@ +--- +import { docsChannel } from '../docs-path'; + +const { head } = Astro.locals.starlightRoute; +const channel = docsChannel(Astro.url.pathname); +--- + +{head.map(({ tag: Tag, attrs, content }) => <Tag {...attrs} set:html={content} />)} +<meta data-pagefind-filter="channel[content]" content={channel} /> |
