Skip to content

Commit

Permalink
feat(docs): 🚀 add og config
Browse files Browse the repository at this point in the history
  • Loading branch information
luthfimasruri committed Dec 23, 2022
1 parent 82c2662 commit 4e6b453
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/content/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import 'dotenv/config'
import { defineConfig } from 'vitepress'

const ogDescription = 'VueQuill Rich Text Editor for Vue 3'
const ogImage = 'https://vueup.github.io/vue-quill/og-image.png'
const ogTitle = 'VueQuill'
const ogUrl = 'https://vueup.github.io/vue-quill/'

export default defineConfig({
base: '/vue-quill/',
lang: 'en-US',
Expand All @@ -11,6 +16,13 @@ export default defineConfig({
'link',
{ rel: 'icon', type: 'image/svg+xml', href: '/vue-quill/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: 'og:description', content: ogDescription }],
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
['meta', { name: 'theme-color', content: '#6279f4' }],
],
themeConfig: {
logo: '/logo.svg',
Expand Down
Binary file added docs/content/public/og-image.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4e6b453

Please sign in to comment.