switch position
46402ea3
1 file(s) · +5 −2
| 5 | 5 | import Footer from "@/components/layout/Footer"; |
|
| 6 | 6 | import SkipLink from "@/components/SkipLink"; |
|
| 7 | 7 | import siteConfig from "@/site-config"; |
|
| 8 | - | import { GoogleAnalytics } from "astro-google-analytics" |
|
| 8 | + | import { GoogleAnalytics } from "astro-google-analytics"; |
|
| 9 | 9 | ||
| 10 | 10 | interface Props { |
|
| 11 | 11 | meta: SiteMeta; |
|
| 18 | 18 | ||
| 19 | 19 | <html lang={siteConfig.lang}> |
|
| 20 | 20 | <head> |
|
| 21 | - | <BaseHead title={title} description={description} ogImage={ogImage} articleDate={articleDate} /> <GoogleAnalytics id="G-QT67QEFLTG" /> <script define:vars={{ siteConfig }}> const root = document.documentElement; |
|
| 21 | + | <GoogleAnalytics id="G-QT67QEFLTG" /> |
|
| 22 | + | <BaseHead title={title} description={description} ogImage={ogImage} articleDate={articleDate} /> |
|
| 23 | + | <script define:vars={{ siteConfig }}> |
|
| 24 | + | const root = document.documentElement; |
|
| 22 | 25 | const colorThemeMetaTag = document.querySelector("meta[name='theme-color']"); |
|
| 23 | 26 | ||
| 24 | 27 | // get user preference of dark mode, 1st local storage, 2nd browser |
|