From eccad3da5d7b84b0f78a85b357efedef8c0127fc Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed, 19 Mar 2025 04:48:24 +0000
Subject: [PATCH] fix(lastmod): fallback to ctx.arg.directory instead of empty string

---
 quartz/util/path.ts |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/quartz/util/path.ts b/quartz/util/path.ts
index 6d99c36..0681fae 100644
--- a/quartz/util/path.ts
+++ b/quartz/util/path.ts
@@ -247,7 +247,7 @@
 }
 
 // path helpers
-function isFolderPath(fplike: string): boolean {
+export function isFolderPath(fplike: string): boolean {
   return (
     fplike.endsWith("/") ||
     endsWith(fplike, "index") ||
@@ -260,7 +260,7 @@
   return s === suffix || s.endsWith("/" + suffix)
 }
 
-function trimSuffix(s: string, suffix: string): string {
+export function trimSuffix(s: string, suffix: string): string {
   if (endsWith(s, suffix)) {
     s = s.slice(0, -suffix.length)
   }

--
Gitblit v1.10.0