docs-ko icon indicating copy to clipboard operation
docs-ko copied to clipboard

[SYNC] docs: tweak ogp tags (#9079)

Open github-actions[bot] opened this issue 3 years ago • 0 comments

docs: tweak ogp tags (#9079) (cda5442)


+++ b/docs/.vitepress/config.ts
@@ -1,9 +1,9 @@
import { defineConfig } from 'vitepress'
const ogDescription = 'Next Generation Frontend Tooling'
-const ogImage = 'https://main.vitejs.dev/og-image.png'
+const ogImage = 'https://vitejs.dev/og-image.png'
const ogTitle = 'Vite'
-const ogUrl = 'https://main.vitejs.dev'
+const ogUrl = 'https://vitejs.dev'
export default defineConfig({
title: 'Vite',
@@ -15,11 +15,9 @@ export default defineConfig({
['meta', { property: 'og:title', content: ogTitle }],
['meta', { property: 'og:image', content: ogImage }],
['meta', { property: 'og:url', content: ogUrl }],
-    ['meta', { property: 'twitter:description', content: ogDescription }],
-    ['meta', { property: 'twitter:title', content: ogTitle }],
-    ['meta', { property: 'twitter:card', content: 'summary_large_image' }],
-    ['meta', { property: 'twitter:image', content: ogImage }],
-    ['meta', { property: 'twitter:url', content: ogUrl }]
+    ['meta', { property: 'og:description', content: ogDescription }],
+    ['meta', { name: 'twitter:card', content: 'summary_large_image' }],
+    ['meta', { name: 'twitter:site', content: '@vite_js' }]
],
vue: {
@@ -106,10 +104,10 @@ export default defineConfig({
]
},
{
-        text: 'v3 (next)',
+        text: 'Version',
items: [
{
-            text: 'v2.x (stable)',
+            text: 'Vite 2 Docs',
link: 'https://v2.vitejs.dev'
}
]

github-actions[bot] avatar Jul 14 '22 00:07 github-actions[bot]