From 52a5196f38bbae3ec947b05f5dcf58213774ce49 Mon Sep 17 00:00:00 2001
From: Emile Bangma <github@emilebangma.com>
Date: Wed, 18 Jun 2025 05:18:57 +0000
Subject: [PATCH] chore: converted Emoji version 16 (#2018)

---
 quartz/build.ts |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/quartz/build.ts b/quartz/build.ts
index 9e657b6..9fff1b6 100644
--- a/quartz/build.ts
+++ b/quartz/build.ts
@@ -125,9 +125,10 @@
     ctx,
     mut,
     contentMap,
-    ignored: (path) => {
-      if (gitIgnoredMatcher(path)) return true
-      const pathStr = path.toString()
+    ignored: (fp) => {
+      const pathStr = toPosixPath(fp.toString())
+      if (pathStr.startsWith(".git/")) return true
+      if (gitIgnoredMatcher(pathStr)) return true
       for (const pattern of cfg.configuration.ignorePatterns) {
         if (minimatch(pathStr, pattern)) {
           return true

--
Gitblit v1.10.0