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
2 people authored and i74ifa committed Jan 12, 2025
1 parent d1a3e70 commit c106129
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 @@ -579,15 +579,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 @@ -717,7 +727,7 @@ export default defineConfigWithTheme<ThemeConfig>({
markdown: {
config(md) {
md.use(headerPlugin)
// .use(textAdPlugin)
// .use(textAdPlugin)
}
},

Expand Down

0 comments on commit c106129

Please sign in to comment.