From ccceb1e16a2b009506336becc48bfadce8eff8be Mon Sep 17 00:00:00 2001 From: Kian Newman-Hazel Date: Fri, 20 Dec 2024 10:51:28 +0000 Subject: [PATCH] [Docs Site] Exclude Style Guide from indexing --- src/components/overrides/Head.astro | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/components/overrides/Head.astro b/src/components/overrides/Head.astro index 4deafbd0dad4d8e..a6fa9cd99f54c30 100644 --- a/src/components/overrides/Head.astro +++ b/src/components/overrides/Head.astro @@ -126,6 +126,17 @@ if (currentSection) { }); } } + + if (currentSection === "style-guide") { + Astro.props.entry.data.head.push({ + tag: "meta", + attrs: { + name: "robots", + content: "noindex", + }, + content: "", + }); + } } Astro.props.entry.data.description ??= await getPageDescription(