fix: theme-color of meta tag

This commit is contained in:
radishzzz 2025-01-20 10:56:34 +00:00
parent 47aabb59e7
commit 60e31ebe35
2 changed files with 4 additions and 3 deletions

View file

@ -27,8 +27,9 @@ const { cdn, commentURL = '', imageHostURL = '', customGoogleAnalyticsURL = '',
<meta name="description" content={postDescription || description} />
<meta name="author" content={author} />
<meta name="generator" content={Astro.generator} />
<meta name="theme-color" content={lightMode} media="(prefers-color-scheme: light)" />
<meta name="theme-color" content={darkMode} media="(prefers-color-scheme: dark)" />
<meta name="theme-color" content={lightMode} />
<meta name="theme-color" media="(prefers-color-scheme: light)" content={lightMode} />
<meta name="theme-color" media="(prefers-color-scheme: dark)" content={darkMode} />
<meta itemprop="name" content={postTitle || title} />
<meta itemprop="image" content={postImage || siteScreenshot} />
<meta itemprop="description" content={postDescription || subtitle} />

View file

@ -1,7 +1,7 @@
<button
aria-pressed="false"
aria-label="Theme Toggle Button"
class="fixed right-10 top-10 z-999 aspect-square w-8 text-secondary"
class="right-10 top-10 z-999 aspect-square w-8 text-secondary"
>
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="moon-icon" fill="currentColor">
<g>