From 5a96372142bd270f3aa6980e4aede8f4c6598f07 Mon Sep 17 00:00:00 2001 From: zernonia Date: Wed, 6 Sep 2023 18:38:03 +0800 Subject: [PATCH] docs: update meta data --- apps/www/.vitepress/config.mts | 9 +++++++-- apps/www/src/public/site.webmanifest | 20 +------------------- 2 files changed, 8 insertions(+), 21 deletions(-) diff --git a/apps/www/.vitepress/config.mts b/apps/www/.vitepress/config.mts index 132fc897..9ecd2f26 100644 --- a/apps/www/.vitepress/config.mts +++ b/apps/www/.vitepress/config.mts @@ -10,7 +10,12 @@ export default defineConfig({ titleTemplate: ':title - shadcn/vue', description: siteConfig.description, head: [ - ['link', { rel: 'icon', href: '/favicon.ico' }], + ['link', { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }], + ['link', { rel: 'shortcut icon', href: '/favicon-16x16.png' }], + ['link', { rel: 'apple-touch-icon', href: '/apple-touch-icon.png' }], + ['link', { rel: 'manifest', href: '/site.webmanifest' }], + + ['meta', { name: 'creator', content: 'radix-vue' }], ['meta', { name: 'theme-color', content: '#41b883' }], ['meta', { name: 'og:type', content: 'website' }], ['meta', { name: 'og:locale', content: 'en' }], @@ -33,7 +38,7 @@ export default defineConfig({ provider: 'local', }, editLink: { - pattern: 'https://github.com/radix-vue/shadcn-vue/tree/dev/apps/www/src/:path', + pattern: 'https://github.com/radix-vue/shadcn-vue/tree/main/apps/www/src/:path', text: 'Edit this page on GitHub', }, }, diff --git a/apps/www/src/public/site.webmanifest b/apps/www/src/public/site.webmanifest index fa99de77..45dc8a20 100644 --- a/apps/www/src/public/site.webmanifest +++ b/apps/www/src/public/site.webmanifest @@ -1,19 +1 @@ -{ - "name": "", - "short_name": "", - "icons": [ - { - "src": "/android-chrome-192x192.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "/android-chrome-512x512.png", - "sizes": "512x512", - "type": "image/png" - } - ], - "theme_color": "#ffffff", - "background_color": "#ffffff", - "display": "standalone" -} +{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file