aboutsummaryrefslogtreecommitdiff
path: root/website/src/components/Head.astro
blob: 9987173b18bcc2b5cb37695805e6a5f1681ac065 (plain)
1
2
3
4
5
6
7
8
9
10
---
import { docsVersion } from '../docs-path';

const { head } = Astro.locals.starlightRoute;
const version = docsVersion(Astro.url.pathname);
---

{head.map(({ tag: Tag, attrs, content }) => <Tag {...attrs} set:html={content} />)}
<meta data-pagefind-filter="version[content]" content={version} />
{version !== 'stable' && <meta name="robots" content="noindex, nofollow" />}