mirror of
https://github.com/fmhy/edit.git
synced 2026-02-19 09:41:17 +11:00
Opengraph images
This commit is contained in:
parent
7213a1f4af
commit
4bc7f038e1
12 changed files with 706 additions and 19 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue