Skip to content

Commit

Permalink
fix: og preview (#2633)
Browse files Browse the repository at this point in the history
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
  • Loading branch information
himself65 and brc-dd committed Dec 28, 2023
1 parent 14d762c commit 658ed80
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,15 +568,25 @@ export default defineConfigWithTheme<ThemeConfig>({

head: [
['meta', { name: 'theme-color', content: '#3c8772' }],
['meta', { name: 'twitter:site', content: '@vuejs' }],
['meta', { name: 'twitter:card', content: 'summary' }],
['meta', { property: 'og:url', content: 'https://vuejs.org/' }],
['meta', { property: 'og:type', content: 'website' }],
['meta', { property: 'og:title', content: 'Vue.js' }],
[
'meta',
{
name: 'twitter:image',
property: 'og:description',
content: 'Vue.js - The Progressive JavaScript Framework'
}
],
[
'meta',
{
property: 'og:image',
content: 'https://vuejs.org/images/logo.png'
}
],
['meta', { name: 'twitter:site', content: '@vuejs' }],
['meta', { name: 'twitter:card', content: 'summary' }],
[
'link',
{
Expand Down Expand Up @@ -701,7 +711,7 @@ export default defineConfigWithTheme<ThemeConfig>({
markdown: {
config(md) {
md.use(headerPlugin)
// .use(textAdPlugin)
// .use(textAdPlugin)
}
},

Expand Down

0 comments on commit 658ed80

Please sign in to comment.