From ec00a40aefca73596ab76e3ebe3a8e1129b43688 Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 27 Jan 2026 18:27:17 +0000
Subject: [PATCH] chore(deps): bump the production-dependencies group with 4 updates (#2289)
---
quartz/util/lang.ts | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/quartz/util/lang.ts b/quartz/util/lang.ts
index eb03a24..6fb0469 100644
--- a/quartz/util/lang.ts
+++ b/quartz/util/lang.ts
@@ -1,7 +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