We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aed4133 commit 2f9e75aCopy full SHA for 2f9e75a
docs/.vitepress/config.mts
@@ -18,6 +18,16 @@ export default defineConfig({
18
head: [
19
['link', { rel: 'icon', href: `/${packageName}/logo.png` }],
20
],
21
+ transformHead: ({ pageData, head }) => {
22
+ head.push(['meta', { property: 'og:site_name', content: packageName }]);
23
+ head.push(['meta', { property: 'og:title', content: pageData.title }]);
24
+ if (pageData.description) {
25
+ head.push(['meta', { property: 'og:description', content: pageData.description }]);
26
+ }
27
+ head.push(['meta', { property: 'og:image', content: `https://${author}.github.io/${packageName}/logo.png` }]);
28
+
29
+ return head
30
+ },
31
themeConfig: {
32
logo: '/logo.png',
33
search: {
0 commit comments