From afa163f2fe9c52d4b3bf1a2e4d48887916b67c24 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 05 Oct 2023 20:30:06 +0000
Subject: [PATCH] style: styling for codeblocks without langs (#527)
---
quartz/plugins/transformers/lastmod.ts | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/quartz/plugins/transformers/lastmod.ts b/quartz/plugins/transformers/lastmod.ts
index 7deeefb..feca4b5 100644
--- a/quartz/plugins/transformers/lastmod.ts
+++ b/quartz/plugins/transformers/lastmod.ts
@@ -14,7 +14,7 @@
function coerceDate(fp: string, d: any): Date {
const dt = new Date(d)
- const invalidDate = isNaN(dt.getTime())
+ const invalidDate = isNaN(dt.getTime()) || dt.getTime() === 0
if (invalidDate && d !== undefined) {
console.log(
chalk.yellow(
--
Gitblit v1.10.0