feat: multiple custom favicons

This commit is contained in:
saicaca
2024-04-23 02:57:38 +08:00
committed by saica.go
parent bd468054c2
commit 94a9e9757d
4 changed files with 62 additions and 27 deletions

View File

@@ -15,14 +15,13 @@ export const siteConfig: SiteConfig = {
enable: false,
src: 'assets/images/demo-banner.png',
},
favicon: {
enable: false,
size: '32x32',
src: {
light: '/favicon/favicon-light-32.png',
dark: '/favicon/favicon-dark-32.png',
}
},
favicon: [ // Leave this array empty to use the default favicon
// {
// src: '/favicon/icon.png', // Path of the favicon, relative to the /public directory
// theme: 'light', // (Optional) Either 'light' or 'dark', set only if you have different favicons for light and dark mode
// sizes: '32x32', // (Optional) Size of the favicon, set only if you have favicons of different sizes
// }
]
}
export const navBarConfig: NavBarConfig = {