From 83b1286354e0f5e83927c8fb35a584e587b5530b Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 27 Nov 2025 06:29:01 +0900 Subject: refactor(nuldoc): Refactor elem() --- services/nuldoc/nuldoc-src/components/StaticStylesheet.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'services/nuldoc/nuldoc-src/components/StaticStylesheet.ts') diff --git a/services/nuldoc/nuldoc-src/components/StaticStylesheet.ts b/services/nuldoc/nuldoc-src/components/StaticStylesheet.ts index 43802d2..065ee20 100644 --- a/services/nuldoc/nuldoc-src/components/StaticStylesheet.ts +++ b/services/nuldoc/nuldoc-src/components/StaticStylesheet.ts @@ -1,6 +1,6 @@ import { join } from "@std/path"; import { Config } from "../config.ts"; -import { elem, Element } from "../dom.ts"; +import { Element, link } from "../dom.ts"; import { calculateFileHash } from "./utils.ts"; export default async function StaticStylesheet( @@ -8,5 +8,5 @@ export default async function StaticStylesheet( ): Promise { const filePath = join(Deno.cwd(), config.locations.staticDir, fileName); const hash = await calculateFileHash(filePath); - return elem("link", { rel: "stylesheet", href: `${fileName}?h=${hash}` }); + return link({ rel: "stylesheet", href: `${fileName}?h=${hash}` }); } -- cgit v1.2.3-70-g09d2