From 13f01417d168bf514b4ba3272a1621f603e17d1e Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Fri, 2 Feb 2024 03:47:00 +0800 Subject: [PATCH] docs: replace `name` with `property` (#3514) --- docs/.vitepress/config/shared.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/.vitepress/config/shared.ts b/docs/.vitepress/config/shared.ts index a99b770244a4..3b96732166f6 100644 --- a/docs/.vitepress/config/shared.ts +++ b/docs/.vitepress/config/shared.ts @@ -31,10 +31,12 @@ export const shared = defineConfig({ ['link', { rel: 'icon', type: 'image/svg+xml', href: '/vitepress-logo-mini.svg' }], ['link', { rel: 'icon', type: 'image/png', href: '/vitepress-logo-mini.png' }], ['meta', { name: 'theme-color', content: '#5f67ee' }], - ['meta', { name: 'og:type', content: 'website' }], - ['meta', { name: 'og:locale', content: 'en' }], - ['meta', { name: 'og:site_name', content: 'VitePress' }], - ['meta', { name: 'og:image', content: 'https://vitepress.dev/vitepress-og.jpg' }], + ['meta', { property: 'og:type', content: 'website' }], + ['meta', { property: 'og:locale', content: 'en' }], + ['meta', { property: 'og:title', content: 'VitePress | Vite & Vue Powered Static Site Generator' }], + ['meta', { property: 'og:site_name', content: 'VitePress' }], + ['meta', { property: 'og:image', content: 'https://vitepress.dev/vitepress-og.jpg' }], + ['meta', { property: 'og:url', content: 'https://vitepress.dev/' }], ['script', { src: 'https://cdn.usefathom.com/script.js', 'data-site': 'AZBRSFGG', 'data-spa': 'auto', defer: '' }] ],