summaryrefslogtreecommitdiffhomepage
path: root/vhosts/blog/nuldoc-src/components/StaticScript.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'vhosts/blog/nuldoc-src/components/StaticScript.tsx')
-rw-r--r--vhosts/blog/nuldoc-src/components/StaticScript.tsx18
1 files changed, 0 insertions, 18 deletions
diff --git a/vhosts/blog/nuldoc-src/components/StaticScript.tsx b/vhosts/blog/nuldoc-src/components/StaticScript.tsx
deleted file mode 100644
index 0e3ab194..00000000
--- a/vhosts/blog/nuldoc-src/components/StaticScript.tsx
+++ /dev/null
@@ -1,18 +0,0 @@
-import { join } from "@std/path";
-import { Config } from "../config.ts";
-import { calculateFileHash } from "./utils.ts";
-
-export default async function StaticScript(
- { fileName, type, defer, config }: {
- fileName: string;
- type?: string;
- defer?: "true";
- config: Config;
- },
-) {
- const filePath = join(Deno.cwd(), config.locations.staticDir, fileName);
- const hash = await calculateFileHash(filePath);
- return (
- <script src={`${fileName}?h=${hash}`} type={type} defer={defer}></script>
- );
-}