diff options
Diffstat (limited to 'services/nuldoc/nuldoc-src/components/StaticStylesheet.ts')
| -rw-r--r-- | services/nuldoc/nuldoc-src/components/StaticStylesheet.ts | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/services/nuldoc/nuldoc-src/components/StaticStylesheet.ts b/services/nuldoc/nuldoc-src/components/StaticStylesheet.ts deleted file mode 100644 index f2adb473..00000000 --- a/services/nuldoc/nuldoc-src/components/StaticStylesheet.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { join } from "@std/path"; -import { Config } from "../config.ts"; -import { Element, link } from "../dom.ts"; -import { calculateFileHash } from "./utils.ts"; - -export default async function StaticStylesheet( - { site, fileName, config }: { - site?: string; - fileName: string; - config: Config; - }, -): Promise<Element> { - const filePath = join( - Deno.cwd(), - config.locations.staticDir, - site || "_all", - fileName, - ); - const hash = await calculateFileHash(filePath); - return link({ rel: "stylesheet", href: `${fileName}?h=${hash}` }); -} |
