Skip to content

Commit

Permalink
Open Graph metadata on docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Apr 12, 2024
1 parent d458dcf commit 4c00fc5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@ export default defineConfig({
href: "/favicon-32x32.png",
},
],
[
"meta",
{
property: "og:image",
content:
"https://repository-images.githubusercontent.com/766072261/03a63032-03aa-481e-aa31-091809a49043",
},
],
...plausibleScript,
],

Expand All @@ -141,4 +149,17 @@ export default defineConfig({
md.use(jsrRefPlugin);
},
},

async transformHead(context) {
return [
[
"meta",
{ property: "og:title", content: context.title },
],
[
"meta",
{ property: "og:description", content: context.description },
],
];
},
});
3 changes: 3 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
layout: home
description: >-
Fedify is a TypeScript library for building federated server apps powered by
ActivityPub and other standards, so-called fediverse.
hero:
name: Fedify
Expand Down

0 comments on commit 4c00fc5

Please sign in to comment.