diff options
Diffstat (limited to 'website/src/components/Head.astro')
| -rw-r--r-- | website/src/components/Head.astro | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/website/src/components/Head.astro b/website/src/components/Head.astro index b1214cb1..9987173b 100644 --- a/website/src/components/Head.astro +++ b/website/src/components/Head.astro @@ -1,9 +1,10 @@ --- -import { docsChannel } from '../docs-path'; +import { docsVersion } from '../docs-path'; const { head } = Astro.locals.starlightRoute; -const channel = docsChannel(Astro.url.pathname); +const version = docsVersion(Astro.url.pathname); --- {head.map(({ tag: Tag, attrs, content }) => <Tag {...attrs} set:html={content} />)} -<meta data-pagefind-filter="channel[content]" content={channel} /> +<meta data-pagefind-filter="version[content]" content={version} /> +{version !== 'stable' && <meta name="robots" content="noindex, nofollow" />} |
