Skip to content

Commit 1fc04d3

Browse files
committed
feat: add og image for sharing
1 parent 248d03f commit 1fc04d3

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.vitepress/config.mts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ export default defineConfig({
1818
['link', { rel: 'alternate', type: "application/rss+xml", title: "Data Snack News", href: "https://datasnack.org/feed.rss" }],
1919
['script', { src: 'https://stats.datasnack.org/script.js', 'data-website-id': '628fa88f-9ae8-4491-a0b5-ee986bde7465', defer: '' }],
2020
['link', { rel: 'icon', href: '/datasnack-logo.svg', type: "image/svg+xml" }],
21-
['link', { rel: 'icon', href: '/datasnack-logo.png', type: "image/png" }]
21+
['link', { rel: 'icon', href: '/datasnack-logo.png', type: "image/png" }],
22+
['meta', { property: 'og:image', content: '/Data-Snack-bits.png' }],
23+
['meta', { property: 'og:image:width', content: '1200' }],
24+
['meta', { property: 'og:image:height', content: '630' }]
2225
],
2326

2427
themeConfig: {

public/Data-Snack-bits.png

30.7 KB
Loading

0 commit comments

Comments
 (0)