File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -163,6 +163,10 @@ export default function RootLayout({children}: {children: React.ReactNode}) {
163163 return (
164164 < html lang = { siteConfig . languageCode } dir = { siteConfig . isRTL ? 'rtl' : 'ltr' } >
165165 < head >
166+ < script
167+ id = "theme-init"
168+ dangerouslySetInnerHTML = { { __html : themeScript } }
169+ />
166170 { /* RSS autodiscovery */ }
167171 < link
168172 rel = "alternate"
@@ -205,11 +209,6 @@ export default function RootLayout({children}: {children: React.ReactNode}) {
205209 ) }
206210 </ head >
207211 < body className = "font-text font-medium antialiased text-lg bg-wash dark:bg-wash-dark text-secondary dark:text-secondary-dark leading-base" >
208- < Script
209- id = "theme-init"
210- strategy = "beforeInteractive"
211- dangerouslySetInnerHTML = { { __html : themeScript } }
212- />
213212 < ScrollRestoration />
214213 < AnalyticsTracker />
215214 { children }
You can’t perform that action at this time.
0 commit comments