1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 17:46:39 -04:00

separate theme restoration script and add meta[name="theme-color"] tag to _document.tsx

This commit is contained in:
2022-01-04 18:04:33 -05:00
parent 72899ced57
commit 20d8b13bb1
3 changed files with 23 additions and 16 deletions

View File

@ -12,7 +12,10 @@ class MyDocument extends Document {
render() {
return (
<Html lang={config.siteLocale?.replace("_", "-")}>
<Head />
<Head>
{/* set dynamically by script in _app.tsx, but tag must exist first */}
<meta name="theme-color" content="" />
</Head>
<body>
<Main />
<NextScript />