mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 22:59:10 +00:00
docs: social graph meta (#8716)
This commit is contained in:
parent
a201cd495f
commit
15aa7741a0
@ -1,10 +1,26 @@
|
||||
import { defineConfig } from 'vitepress'
|
||||
|
||||
const ogDescription = 'Vite, Next Generation Frontend Tooling'
|
||||
const ogImage = 'https://main.vitejs.dev/og-image.png'
|
||||
const ogTitle = 'Vite'
|
||||
const ogUrl = 'https://main.vitejs.dev'
|
||||
|
||||
export default defineConfig({
|
||||
title: 'Vite',
|
||||
description: 'Next Generation Frontend Tooling',
|
||||
|
||||
head: [['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }]],
|
||||
head: [
|
||||
['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }],
|
||||
['meta', { property: 'og:type', content: 'website' }],
|
||||
['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 }]
|
||||
],
|
||||
|
||||
vue: {
|
||||
reactivityTransform: true
|
||||
|
BIN
docs/public/og-image.png
Normal file
BIN
docs/public/og-image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 626 KiB |
Loading…
Reference in New Issue
Block a user