diff --git a/src/assets/ZCOOLKuaiLe-Regular.ttf b/src/assets/ZCOOLKuaiLe-Regular.ttf new file mode 100644 index 0000000..d7157a3 Binary files /dev/null and b/src/assets/ZCOOLKuaiLe-Regular.ttf differ diff --git a/src/pages/og-image/[...slug].png.ts b/src/pages/og-image/[...slug].png.ts index aad5112..427f9f3 100644 --- a/src/pages/og-image/[...slug].png.ts +++ b/src/pages/og-image/[...slug].png.ts @@ -1,6 +1,6 @@ -import NotoSansSC from "@/assets/NotoSansHans-Regular-2.ttf"; import RobotoMonoBold from "@/assets/roboto-mono-700.ttf"; import RobotoMono from "@/assets/roboto-mono-regular.ttf"; +import Zcoolkuaile from "@/assets/ZCOOLKuaiLe-Regular.ttf"; import { siteConfig } from "@/site-config"; import { Resvg } from "@resvg/resvg-js"; @@ -25,8 +25,8 @@ const ogOptions: SatoriOptions = { weight: 700, }, { - data: Buffer.from(NotoSansSC), - name: "Noto Sans SC", + data: Buffer.from(Zcoolkuaile), + name: "ZCOOL KuaiLe", style: "normal", weight: 400, }, @@ -36,7 +36,7 @@ const ogOptions: SatoriOptions = { }; const markup = (title: string, pubDate: string) => - html`
+ html`

${pubDate}

${title}

@@ -86,3 +86,5 @@ export async function getStaticPaths() { }, })); } + +export const prerender = true; \ No newline at end of file