docs: social graph meta (#8716)

This commit is contained in:
patak 2022-06-22 13:41:57 +02:00 committed by GitHub
parent a201cd495f
commit 15aa7741a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 KiB