Skip to content

Commit

Permalink
feat: add social sharing image meta tags to VitePress config
Browse files Browse the repository at this point in the history
  • Loading branch information
ismail9k committed Feb 1, 2025
1 parent 82840d4 commit f02122c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,22 @@ module.exports = {

head: [
['link', { rel: 'icon', href: '/favicon.ico' }],
// Add social sharing image meta tags
[
'meta',
{
property: 'og:image',
content: 'https://vue3-carousel.ismail9k.com/social-image.png',
},
],
[
'meta',
{
name: 'twitter:image',
content: 'https://vue3-carousel.ismail9k.com/social-image.png',
},
],
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
[
'script',
{
Expand Down
Binary file added docs/public/social-image.png
Loading
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 f02122c

Please sign in to comment.