From 1377004fcac9235b3ea384c8d3fb8695bf50a615 Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 27 Oct 2025 21:38:05 +0000
Subject: [PATCH] chore(deps): bump the production-dependencies group across 1 directory with 6 updates (#2177)

---
 quartz/util/resources.tsx |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/quartz/util/resources.tsx b/quartz/util/resources.tsx
index 72ae9e6..d95333e 100644
--- a/quartz/util/resources.tsx
+++ b/quartz/util/resources.tsx
@@ -1,5 +1,6 @@
 import { randomUUID } from "crypto"
 import { JSX } from "preact/jsx-runtime"
+import { QuartzPluginData } from "../plugins/vfile"
 
 export type JSResource = {
   loadTime: "beforeDOMReady" | "afterDOMReady"
@@ -62,4 +63,12 @@
 export interface StaticResources {
   css: CSSResource[]
   js: JSResource[]
+  additionalHead: (JSX.Element | ((pageData: QuartzPluginData) => JSX.Element))[]
+}
+
+export type StringResource = string | string[] | undefined
+export function concatenateResources(...resources: StringResource[]): StringResource {
+  return resources
+    .filter((resource): resource is string | string[] => resource !== undefined)
+    .flat()
 }

--
Gitblit v1.10.0