mirror of
https://github.com/fosrl/docs-v2.git
synced 2026-10-01 02:09:12 +02:00
add better favicon support
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 8.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 33 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
+1
-1
@@ -14,7 +14,7 @@ export const metadata: Metadata = {
|
|||||||
metadataBase: new URL(siteUrl),
|
metadataBase: new URL(siteUrl),
|
||||||
title: { template: `%s - ${appName}`, default: appName },
|
title: { template: `%s - ${appName}`, default: appName },
|
||||||
description: siteDescription,
|
description: siteDescription,
|
||||||
icons: { icon: '/favicon.png' },
|
appleWebApp: { title: appName },
|
||||||
openGraph: { siteName: appName, images: '/images/home-social-graph.png' },
|
openGraph: { siteName: appName, images: '/images/home-social-graph.png' },
|
||||||
twitter: { card: 'summary_large_image' },
|
twitter: { card: 'summary_large_image' },
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
import type { MetadataRoute } from 'next';
|
||||||
|
import { appName, siteDescription } from '@/lib/shared';
|
||||||
|
|
||||||
|
export default function manifest(): MetadataRoute.Manifest {
|
||||||
|
return {
|
||||||
|
name: appName,
|
||||||
|
short_name: appName,
|
||||||
|
description: siteDescription,
|
||||||
|
start_url: '/',
|
||||||
|
display: 'standalone',
|
||||||
|
background_color: '#FAF9F2',
|
||||||
|
theme_color: '#FAF9F2',
|
||||||
|
icons: [
|
||||||
|
{
|
||||||
|
src: '/web-app-manifest-192x192.png',
|
||||||
|
sizes: '192x192',
|
||||||
|
type: 'image/png',
|
||||||
|
purpose: 'maskable',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
src: '/web-app-manifest-512x512.png',
|
||||||
|
sizes: '512x512',
|
||||||
|
type: 'image/png',
|
||||||
|
purpose: 'maskable',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -41,5 +41,7 @@ export default function proxy(request: NextRequest) {
|
|||||||
|
|
||||||
export const config = {
|
export const config = {
|
||||||
// skip Next internals, API routes, generated files and static assets
|
// skip Next internals, API routes, generated files and static assets
|
||||||
matcher: ['/((?!_next/|api/|og/|llms|images/|logo/|favicon).*)'],
|
matcher: [
|
||||||
|
'/((?!_next/|api/|og/|llms|images/|logo/|favicon|icon|apple-icon|manifest|web-app-manifest).*)',
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 9.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
Reference in New Issue
Block a user