Skip to content

Commit ddd4d70

Browse files
committed
feat: 添加 SEO 和社交媒体 meta 标签以及网站图标链接
1 parent 2306943 commit ddd4d70

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.vitepress/config.mts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@ export default defineConfig({
5050
},
5151
},
5252
head: [
53+
['meta', { key: 'twitter:card', name: 'twitter:card', content: 'summary_large_image' }],
54+
['meta', { name: 'author', content: 'RustFS' }],
55+
['meta', { name: 'robots', content: 'index, follow' }],
56+
['meta', { name: 'googlebot', content: 'index, follow' }],
57+
['meta', { name: 'bingbot', content: 'index, follow' }],
58+
['meta', { name: 'yandexbot', content: 'index, follow' }],
59+
['meta', { key: 'twitter:site', name: 'twitter:site', content: '@rustfs' }],
60+
['meta', { key: 'twitter:creator', name: 'twitter:creator', content: '@rustfs' }],
61+
['meta', { key: 'og:type', property: 'og:type', content: 'article' }],
62+
['link', { rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' }],
63+
['link', { rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon-32x32.png' }],
64+
['link', { rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon-16x16.png' }],
65+
['link', { rel: 'manifest', href: '/site.webmanifest' }],
5366
['script', { async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-TWW7WMTWL9' }],
5467

5568
[

0 commit comments

Comments
 (0)