From 2b39bd93f38414d7fb03458bbb51252ada194df0 Mon Sep 17 00:00:00 2001
From: Silviu LorenČ› <124451350+smilorent@users.noreply.github.com>
Date: Sun, 11 Feb 2024 19:23:58 +0000
Subject: [PATCH] feat(i18n): localize the `min read` string for the `ro-RO` locale (#847)

---
 quartz/components/Breadcrumbs.tsx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/quartz/components/Breadcrumbs.tsx b/quartz/components/Breadcrumbs.tsx
index 3875f5e..116f952 100644
--- a/quartz/components/Breadcrumbs.tsx
+++ b/quartz/components/Breadcrumbs.tsx
@@ -68,8 +68,8 @@
       folderIndex = new Map()
       // construct the index for the first time
       for (const file of allFiles) {
-        if (file.slug?.endsWith("index")) {
-          const folderParts = file.slug?.split("/")
+        const folderParts = file.slug?.split("/")
+        if (folderParts?.at(-1) === "index") {
           // 2nd last to exclude the /index
           const folderName = folderParts?.at(-2)
           if (folderName) {

--
Gitblit v1.10.0