添加seo功能
This commit is contained in:
21
src/app/manifest.ts
Normal file
21
src/app/manifest.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import {MetadataRoute} from 'next'
|
||||
import {siteConfig} from '@/config/site'
|
||||
|
||||
export default function manifest(): MetadataRoute.Manifest {
|
||||
return {
|
||||
name: siteConfig.name,
|
||||
short_name: siteConfig.shortName,
|
||||
description: siteConfig.description,
|
||||
start_url: '/',
|
||||
display: 'standalone',
|
||||
background_color: '#ffffff',
|
||||
theme_color: '#3b82f6',
|
||||
icons: [
|
||||
{
|
||||
src: '/favicon.ico',
|
||||
sizes: '48x48',
|
||||
type: 'image/x-icon',
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user