fix cover

This commit is contained in:
Clas Wen 2025-01-28 14:53:35 +08:00
parent feea83a685
commit 6eeaa2a4cb

View file

@ -18,6 +18,9 @@ export const handleLocalCoverPlugin: RehypePlugin = () => {
if (coverUrl.includes("http")) {
return
}
if (coverUrl.includes("base64")) {
return
}
const url = path.resolve(path.dirname(filePath), coverUrl)
const dataURL = await convertImageToBase64URL(url)
if (typeof astroData.frontmatter.cover === "string") {