fix favicon ico
This commit is contained in:
@@ -301,7 +301,9 @@ function generateHtml(title: string, content: string, config: AppConfig, assets:
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>${escapeHtml(title)} - ${escapeHtml(config.title)}</title>
|
||||
<link rel="icon" href="/favicon.png" type="image/png">
|
||||
<link rel="icon" href="/favicon.ico" sizes="48x48">
|
||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||
<link rel="icon" href="/favicon.png" type="image/png" sizes="512x512">
|
||||
<link rel="stylesheet" href="/pkg/icomoon/style.css">
|
||||
<link rel="stylesheet" href="/assets/${assets.css}">
|
||||
${config.color ? `<style>:root { --btn-color: ${config.color}; }</style>` : ''}
|
||||
@@ -827,7 +829,7 @@ async function generate() {
|
||||
console.log('Generated: /404.html')
|
||||
|
||||
// Copy static files
|
||||
const filesToCopy = ['favicon.png', 'favicon.svg', 'config.json', 'networks.json', 'client-metadata.json', 'links.json']
|
||||
const filesToCopy = ['favicon.ico', 'favicon.png', 'favicon.svg', 'config.json', 'networks.json', 'client-metadata.json', 'links.json']
|
||||
for (const file of filesToCopy) {
|
||||
const src = path.join(process.cwd(), 'public', file)
|
||||
const dest = path.join(distDir, file)
|
||||
|
||||
Reference in New Issue
Block a user