alys.phundrak.com/docs/.vitepress/head.ts

37 lines
1.5 KiB
TypeScript
Raw Normal View History

interface Head {
rel: 'apple-touch-icon' | 'icon';
sizes: string;
href: string;
type?: 'image/png';
}
const favicons: Head[] = [
{ rel: 'apple-touch-icon', sizes: '57x57', href: '/apple-icon-57x57.png' },
{ rel: 'apple-touch-icon', sizes: '60x60', href: '/apple-icon-60x60.png' },
{ rel: 'apple-touch-icon', sizes: '72x72', href: '/apple-icon-72x72.png' },
{ rel: 'apple-touch-icon', sizes: '76x76', href: '/apple-icon-76x76.png' },
{ rel: 'apple-touch-icon', sizes: '114x114', href: '/apple-icon-114x114.png' },
{ rel: 'apple-touch-icon', sizes: '120x120', href: '/apple-icon-120x120.png' },
{ rel: 'apple-touch-icon', sizes: '144x144', href: '/apple-icon-144x144.png' },
{ rel: 'apple-touch-icon', sizes: '152x152', href: '/apple-icon-152x152.png' },
{ rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-icon-180x180.png' },
{ rel: 'icon', type: 'image/png', sizes: '192x192', href: '/android-icon-192x192.png' },
{ rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon-32x32.png' },
{ rel: 'icon', type: 'image/png', sizes: '96x96', href: '/favicon-96x96.png' },
{ rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon-16x16.png' },
{ rel: 'manifest', href: '/manifest.json' },
];
let appHead = favicons.map((head) => ['link', head]);
appHead.push([
'script',
{
async: true,
src: 'https://umami.phundrak.com/script.js',
'data-website-id': 'de6e0460-c173-47ae-a5d9-da9cebb1b07e',
},
'',
]);
export default appHead;