aboutsummaryrefslogtreecommitdiff
path: root/website/src/components/Head.astro
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-07-14 02:41:24 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-07-14 02:44:46 +0300
commitca7ae086e8d6e80f6efc969d541b390328a6d143 (patch)
tree85605d0551af1dd2a25dce633fd83a06281598d7 /website/src/components/Head.astro
parent2e5da968ea3fb7105c56f7674caf822de41ec176 (diff)
fix(website): scope docs search by locale and channel
Diffstat (limited to 'website/src/components/Head.astro')
-rw-r--r--website/src/components/Head.astro9
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} />