Unverified Commit 4c00fc5e authored by Hong Minhee's avatar Hong Minhee
Browse files

Open Graph metadata on docs

parent d458dcf4
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -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,
  ],

@@ -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 −0
Original line number Diff line number Diff line
---
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