mirror of
https://github.com/KazooTTT/kazoottt-blog.git
synced 2025-06-23 10:41:31 +08:00
fix: font update
This commit is contained in:
BIN
src/assets/ZCOOLKuaiLe-Regular.ttf
Normal file
BIN
src/assets/ZCOOLKuaiLe-Regular.ttf
Normal file
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
import NotoSansSC from "@/assets/NotoSansHans-Regular-2.ttf";
|
|
||||||
import RobotoMonoBold from "@/assets/roboto-mono-700.ttf";
|
import RobotoMonoBold from "@/assets/roboto-mono-700.ttf";
|
||||||
import RobotoMono from "@/assets/roboto-mono-regular.ttf";
|
import RobotoMono from "@/assets/roboto-mono-regular.ttf";
|
||||||
|
import Zcoolkuaile from "@/assets/ZCOOLKuaiLe-Regular.ttf";
|
||||||
import { siteConfig } from "@/site-config";
|
import { siteConfig } from "@/site-config";
|
||||||
|
|
||||||
import { Resvg } from "@resvg/resvg-js";
|
import { Resvg } from "@resvg/resvg-js";
|
||||||
@ -25,8 +25,8 @@ const ogOptions: SatoriOptions = {
|
|||||||
weight: 700,
|
weight: 700,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
data: Buffer.from(NotoSansSC),
|
data: Buffer.from(Zcoolkuaile),
|
||||||
name: "Noto Sans SC",
|
name: "ZCOOL KuaiLe",
|
||||||
style: "normal",
|
style: "normal",
|
||||||
weight: 400,
|
weight: 400,
|
||||||
},
|
},
|
||||||
@ -36,7 +36,7 @@ const ogOptions: SatoriOptions = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const markup = (title: string, pubDate: string) =>
|
const markup = (title: string, pubDate: string) =>
|
||||||
html`<div tw="flex flex-col w-full h-full bg-[#1d1f21] text-[#c9cacc] font-['Noto Sans SC']">
|
html`<div tw="flex flex-col w-full h-full bg-[#1d1f21] text-[#c9cacc]">
|
||||||
<div tw="flex flex-col flex-1 w-full p-10 justify-center">
|
<div tw="flex flex-col flex-1 w-full p-10 justify-center">
|
||||||
<p tw="text-2xl mb-6">${pubDate}</p>
|
<p tw="text-2xl mb-6">${pubDate}</p>
|
||||||
<h1 tw="text-6xl font-bold leading-snug text-white">${title}</h1>
|
<h1 tw="text-6xl font-bold leading-snug text-white">${title}</h1>
|
||||||
@ -86,3 +86,5 @@ export async function getStaticPaths() {
|
|||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const prerender = true;
|
Reference in New Issue
Block a user