diff options
Diffstat (limited to 'docs/src/components/HeadCommon.astro')
-rw-r--r-- | docs/src/components/HeadCommon.astro | 49 |
1 files changed, 29 insertions, 20 deletions
diff --git a/docs/src/components/HeadCommon.astro b/docs/src/components/HeadCommon.astro index 222c17ac2..ca0782b60 100644 --- a/docs/src/components/HeadCommon.astro +++ b/docs/src/components/HeadCommon.astro @@ -1,10 +1,10 @@ <!-- Global Metadata --> <meta charset="utf-8" /> -<meta name="viewport" content="width=device-width"> -<meta name="theme-color" content="#ff5e00"/> -<link rel="icon" type="image/svg+xml" href="/favicon.svg"/> +<meta name="viewport" content="width=device-width" /> +<meta name="theme-color" content="#ff5e00" /> +<link rel="icon" type="image/svg+xml" href="/favicon.svg" /> <link rel="alternate icon" type="image/x-icon" href="/favicon.ico" /> -<link rel="sitemap" href="/sitemap.xml"/> +<link rel="sitemap" href="/sitemap.xml" /> <!-- Global CSS --> <link rel="stylesheet" href="/theme.css" /> @@ -12,29 +12,38 @@ <link rel="stylesheet" href="/index.css" /> <!-- Preload Fonts --> -<link rel="preconnect" href="https://fonts.googleapis.com"> -<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> -<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital@0;1&display=swap" rel="stylesheet"> +<link rel="preconnect" href="https://fonts.googleapis.com" /> +<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> +<link + href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital@0;1&display=swap" + rel="stylesheet" +/> <!-- Scrollable a11y code helper --> -<script type="module" src="/make-scrollable-code-focusable.js" /> +<script type="module" src="/make-scrollable-code-focusable.js"></script> <!-- This is intentionally inlined to avoid FOUC --> <script> - const root = document.documentElement; - const theme = localStorage.getItem('theme'); - if (theme === 'dark' || (!theme) && window.matchMedia('(prefers-color-scheme: dark)').matches) { - root.classList.add('theme-dark'); - } else { - root.classList.remove('theme-dark'); - } + const root = document.documentElement; + const theme = localStorage.getItem('theme'); + if ( + theme === 'dark' || + (!theme && window.matchMedia('(prefers-color-scheme: dark)').matches) + ) { + root.classList.add('theme-dark'); + } else { + root.classList.remove('theme-dark'); + } </script> <!-- Global site tag (gtag.js) - Google Analytics --> -<script async src="https://www.googletagmanager.com/gtag/js?id=UA-130280175-15"></script> +<script async src="https://www.googletagmanager.com/gtag/js?id=UA-130280175-15" +></script> <script> - window.dataLayer = window.dataLayer || []; - function gtag(){dataLayer.push(arguments);} - gtag('js', new Date()); - gtag('config', 'UA-130280175-15'); + window.dataLayer = window.dataLayer || []; + function gtag() { + dataLayer.push(arguments); + } + gtag('js', new Date()); + gtag('config', 'UA-130280175-15'); </script> |