test: meta theme-color issue

This commit is contained in:
radishzzz 2025-01-20 22:14:43 +00:00
parent fa3d73fe17
commit fddfb8eb5f
2 changed files with 8 additions and 3 deletions

View file

@ -67,6 +67,12 @@ export default defineConfig({
removeComments: true, removeComments: true,
removeEmptyAttributes: true, removeEmptyAttributes: true,
removeRedundantAttributes: true, removeRedundantAttributes: true,
minifyCSS: true,
minifyJS: true,
removeScriptTypeAttributes: true,
removeStyleLinkTypeAttributes: true,
sortAttributes: true,
sortClassName: true,
}, },
}, },
}), }),

View file

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