1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 14:26:41 -04:00

load theme restoration script earlier in the <head>

This commit is contained in:
2025-03-31 09:38:41 -04:00
parent ec7c9fae54
commit 4203516cf3
3 changed files with 22 additions and 16 deletions

View File

@ -1,7 +1,7 @@
import clsx from "clsx";
import { JsonLd } from "react-schemaorg";
import Analytics from "./analytics";
import { ThemeProvider } from "../contexts/ThemeContext";
import { ThemeProvider, ThemeScript } from "../contexts/ThemeContext";
import Header from "../components/Header";
import Footer from "../components/Footer";
import { SkipToContentLink, SkipToContentTarget } from "../components/SkipToContent";
@ -26,6 +26,7 @@ const RootLayout = ({ children }: Readonly<{ children: React.ReactNode }>) => {
return (
<html lang={config.siteLocale} suppressHydrationWarning>
<head>
<ThemeScript />
<JsonLd<Person>
item={{
"@context": "https://schema.org",