docs: add og-image

This commit is contained in:
Anthony Fu
2021-05-05 15:16:05 +08:00
parent eda1e90a97
commit 560210fabc
2 changed files with 7 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 359 KiB

+7
View File
@@ -117,6 +117,13 @@ module.exports = {
description: 'Presentation slides for developers',
head: [
['link', { rel: 'icon', type: 'image/png', href: '/favicon.png' }],
['meta', { name: 'author', content: 'Slidev' }],
['meta', { property: 'og:title', content: 'VueUse' }],
['meta', { property: 'og:image', content: 'https://sli.dev/og-image.png' }],
['meta', { property: 'og:description', content: 'Presentation slides for developers' }],
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
['meta', { name: 'twitter:creator', content: '@slidevjs' }],
['meta', { name: 'twitter:image', content: 'https://sli.dev/og-image.png' }],
['link', { rel: 'dns-prefetch', href: 'https://fonts.gstatic.com' }],
['link', { rel: 'preconnect', crossorigin: 'anonymous', href: 'https://fonts.gstatic.com' }],
['link', { href: 'https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@200;400;500&family=Inter:wght@200;400;500;600', rel: 'stylesheet' }],