From ab0e20b4d0ad1e650126ffd0afa7d0ed6bd46da2 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sun, 11 Feb 2024 18:57:24 +0000
Subject: [PATCH] chore: refactor out and export endsWith
---
quartz/plugins/emitters/folderPage.tsx | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/quartz/plugins/emitters/folderPage.tsx b/quartz/plugins/emitters/folderPage.tsx
index 7a62cda..690fa56 100644
--- a/quartz/plugins/emitters/folderPage.tsx
+++ b/quartz/plugins/emitters/folderPage.tsx
@@ -10,7 +10,7 @@
FilePath,
FullSlug,
SimpleSlug,
- _stripSlashes,
+ stripSlashes,
joinSegments,
pathToRoot,
simplifySlug,
@@ -38,7 +38,7 @@
getQuartzComponents() {
return [Head, Header, Body, ...header, ...beforeBody, pageBody, ...left, ...right, Footer]
},
- async getDependencyGraph(ctx, content, _resources) {
+ async getDependencyGraph(_ctx, _content, _resources) {
// Example graph:
// nested/file.md --> nested/file.html
// \-------> nested/index.html
@@ -75,7 +75,7 @@
)
for (const [tree, file] of content) {
- const slug = _stripSlashes(simplifySlug(file.data.slug!)) as SimpleSlug
+ const slug = stripSlashes(simplifySlug(file.data.slug!)) as SimpleSlug
if (folders.has(slug)) {
folderDescriptions[slug] = [tree, file]
}
--
Gitblit v1.10.0