From 674fe965550444db87edc7937ff6932e1a918d9d Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Fri, 27 Jun 2025 23:39:31 +0900
Subject: feat(meta): rename vhosts/ directory to services/

---
 services/blog/nuldoc-src/components/StaticStylesheet.tsx | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 services/blog/nuldoc-src/components/StaticStylesheet.tsx

(limited to 'services/blog/nuldoc-src/components/StaticStylesheet.tsx')

diff --git a/services/blog/nuldoc-src/components/StaticStylesheet.tsx b/services/blog/nuldoc-src/components/StaticStylesheet.tsx
new file mode 100644
index 00000000..52b695e5
--- /dev/null
+++ b/services/blog/nuldoc-src/components/StaticStylesheet.tsx
@@ -0,0 +1,11 @@
+import { join } from "@std/path";
+import { Config } from "../config.ts";
+import { calculateFileHash } from "./utils.ts";
+
+export default async function StaticStylesheet(
+  { fileName, config }: { fileName: string; config: Config },
+) {
+  const filePath = join(Deno.cwd(), config.locations.staticDir, fileName);
+  const hash = await calculateFileHash(filePath);
+  return <link rel="stylesheet" href={`${fileName}?h=${hash}`} />;
+}
-- 
cgit v1.2.3-70-g09d2

