Opengraph images

This commit is contained in:
taskylizard 2023-11-06 21:22:33 +05:30
parent 7213a1f4af
commit 4bc7f038e1
No known key found for this signature in database
GPG key ID: 5CABA3D642DDC497
12 changed files with 706 additions and 19 deletions

View file

@ -7,6 +7,7 @@ import { pwa } from "./pwa";
import { generateMeta } from "./hooks/meta";
import { fileURLToPath } from "url";
import { copyableCodePlugin } from "./markdown";
import { generateImages } from "./hooks";
export default defineConfig({
title: "FMHY",
@ -36,6 +37,9 @@ export default defineConfig({
["link", { rel: "apple-touch-icon", href: "/test.png", sizes: "192x192" }],
],
transformHead: async (context) => generateMeta(context, meta.hostname),
buildEnd: async (context) => {
generateImages(context);
},
vite: {
plugins: [
UnoCSS({