fix: some stuff

This commit is contained in:
Max Richter
2025-10-24 16:06:16 +02:00
parent 84d1c5b6fd
commit 1a32af0503
4 changed files with 6 additions and 5 deletions

View File

@@ -37,6 +37,7 @@ async function checkImage(image: ImageMetadata) {
const { const {
src: image, src: image,
loader = true, loader = true,
caption,
pictureClass = "", pictureClass = "",
hash = true, hash = true,
alt, alt,

View File

@@ -9,7 +9,7 @@
const iso = (d: string | Date) => { const iso = (d: string | Date) => {
if(!d) return "" if(!d) return ""
const v = toDate(d); const v = toDate(d);
if(!v) return "" if(!v?.getTime) return ""
return isNaN(v.getTime()) ? "" : v.toISOString(); return isNaN(v.getTime()) ? "" : v.toISOString();
}; };

Binary file not shown.

Binary file not shown.