mirror of
https://github.com/sern-handler/website
synced 2026-06-27 18:22:22 +00:00
feat: add i18n support
This commit is contained in:
9
src/overrides/FallbackContentNotice.astro
Normal file
9
src/overrides/FallbackContentNotice.astro
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
import StarlightFallbackContentNotice from "@astrojs/starlight/components/FallbackContentNotice.astro";
|
||||
import type { Props } from "@astrojs/starlight/props";
|
||||
|
||||
const { slug } = Astro.props;
|
||||
const isApi = slug.includes("/api/");
|
||||
---
|
||||
|
||||
{!isApi && <StarlightFallbackContentNotice {...Astro.props} />}
|
||||
Reference in New Issue
Block a user