From 951d1dec24eb8e0bea4ec548cc79c5ce718bf02f Mon Sep 17 00:00:00 2001
From: fl0werpowers <47599466+fl0werpowers@users.noreply.github.com>
Date: Wed, 28 May 2025 08:40:51 +0000
Subject: [PATCH] chore(deps): replace `chalk` and `rimraf` with builtin functions (#1879)
---
quartz/util/lang.ts | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/quartz/util/lang.ts b/quartz/util/lang.ts
index 5211b5d..6fb0469 100644
--- a/quartz/util/lang.ts
+++ b/quartz/util/lang.ts
@@ -1,11 +1,13 @@
-export function pluralize(count: number, s: string): string {
- if (count === 1) {
- return `1 ${s}`
- } else {
- return `${count} ${s}s`
- }
-}
-
export function capitalize(s: string): string {
return s.substring(0, 1).toUpperCase() + s.substring(1)
}
+
+export function classNames(
+ displayClass?: "mobile-only" | "desktop-only",
+ ...classes: string[]
+): string {
+ if (displayClass) {
+ classes.push(displayClass)
+ }
+ return classes.join(" ")
+}
--
Gitblit v1.10.0