Skip to content

Commit 4e6b453

Browse files
committed
feat(docs): 🚀 add og config
1 parent 82c2662 commit 4e6b453

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/content/.vitepress/config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import 'dotenv/config'
22
import { defineConfig } from 'vitepress'
33

4+
const ogDescription = 'VueQuill Rich Text Editor for Vue 3'
5+
const ogImage = 'https://vueup.github.io/vue-quill/og-image.png'
6+
const ogTitle = 'VueQuill'
7+
const ogUrl = 'https://vueup.github.io/vue-quill/'
8+
49
export default defineConfig({
510
base: '/vue-quill/',
611
lang: 'en-US',
@@ -11,6 +16,13 @@ export default defineConfig({
1116
'link',
1217
{ rel: 'icon', type: 'image/svg+xml', href: '/vue-quill/logo.svg' },
1318
],
19+
['meta', { property: 'og:type', content: 'website' }],
20+
['meta', { property: 'og:title', content: ogTitle }],
21+
['meta', { property: 'og:image', content: ogImage }],
22+
['meta', { property: 'og:url', content: ogUrl }],
23+
['meta', { property: 'og:description', content: ogDescription }],
24+
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
25+
['meta', { name: 'theme-color', content: '#6279f4' }],
1426
],
1527
themeConfig: {
1628
logo: '/logo.svg',

docs/content/public/og-image.png

753 KB
Loading

0 commit comments

Comments
 (0)