mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 19:51:07 +02:00
test: meta theme-color issue
This commit is contained in:
parent
dce0b3a786
commit
fa3d73fe17
4 changed files with 17 additions and 7 deletions
|
@ -59,7 +59,17 @@ export default defineConfig({
|
||||||
policy: [{ userAgent: '*', allow: '/' }],
|
policy: [{ userAgent: '*', allow: '/' }],
|
||||||
sitemap: true,
|
sitemap: true,
|
||||||
}),
|
}),
|
||||||
compress(),
|
compress({
|
||||||
|
HTML: {
|
||||||
|
'html-minifier-terser': {
|
||||||
|
removeAttributeQuotes: false,
|
||||||
|
collapseWhitespace: true,
|
||||||
|
removeComments: true,
|
||||||
|
removeEmptyAttributes: true,
|
||||||
|
removeRedundantAttributes: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
markdown: {
|
markdown: {
|
||||||
remarkPlugins: [
|
remarkPlugins: [
|
||||||
|
|
|
@ -28,7 +28,7 @@ const { cdn, commentURL = '', imageHostURL = '', customGoogleAnalyticsURL = '',
|
||||||
<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="color-scheme" content="light 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 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} />
|
||||||
|
|
|
@ -16,13 +16,13 @@ export const themeConfig: ThemeConfig = {
|
||||||
color: {
|
color: {
|
||||||
mode: 'light', // light, dark, DEFAULT to match system theme
|
mode: 'light', // light, dark, DEFAULT to match system theme
|
||||||
light: {
|
light: {
|
||||||
primary: '#505050', // title text color in light mode
|
primary: '#17191A', // title text color in light mode
|
||||||
secondary: '#17191A', // posts text color in light mode
|
secondary: '#505050', // post text color in light mode
|
||||||
background: '#F7EEEC', // background color in light mode
|
background: '#F7EEEC', // background color in light mode
|
||||||
},
|
},
|
||||||
dark: {
|
dark: {
|
||||||
primary: '#A0A09F', // title text color in dark mode
|
primary: '#BEBEBE', // title text color in dark mode
|
||||||
secondary: '#BEBEBE', // posts text color in dark mode
|
secondary: '#A0A09F', // post text color in dark mode
|
||||||
background: '#161616', // background color in dark mode
|
background: '#161616', // background color in dark mode
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -7,7 +7,7 @@ html {
|
||||||
--at-apply: 'scroll-smooth antialiased text-62.5%';
|
--at-apply: 'scroll-smooth antialiased text-62.5%';
|
||||||
}
|
}
|
||||||
body {
|
body {
|
||||||
--at-apply: 'bg-background text-primary text-1.6rem';
|
--at-apply: 'bg-background text-secondary text-1.6rem';
|
||||||
}
|
}
|
||||||
@supports not (view-transition-name: none) {
|
@supports not (view-transition-name: none) {
|
||||||
body {
|
body {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue