Skip to content

Commit 86db21c

Browse files
authored
[Docs Site] Exclude Style Guide from indexing (#18882)
1 parent ef60404 commit 86db21c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/components/overrides/Head.astro

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,17 @@ if (currentSection) {
126126
});
127127
}
128128
}
129+
130+
if (currentSection === "style-guide") {
131+
Astro.props.entry.data.head.push({
132+
tag: "meta",
133+
attrs: {
134+
name: "robots",
135+
content: "noindex",
136+
},
137+
content: "",
138+
});
139+
}
129140
}
130141
131142
Astro.props.entry.data.description ??= await getPageDescription(

0 commit comments

Comments
 (0)