This commit is contained in:
2024-03-16 00:11:02 +01:00
parent 49fe9728e5
commit 85f570433d
6 changed files with 9 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ import {getImage} from "astro:assets";
import {astroI18n} from "astro-i18n";
import {SEO} from "astro-seo";
import {ViewTransitions} from "astro:transitions";
const {title, description} = Astro.props.frontmatter || Astro.props;
const {title, description, clientSideRouter = true} = Astro.props.frontmatter || Astro.props;
import "../../public/fonts/roboto/roboto.css";
@@ -40,7 +40,7 @@ if (localStorage["theme-mode"] === "light" || (!("theme-mode" in localStorage) &
<slot name="head"/>
<ViewTransitions />
{clientSideRouter && <ViewTransitions/>}
</head>
<body class="dark:bg-zinc-800">
<slot/>