From 3f0a299e7e4257c2894f5addeeb23b6907030b77 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Thu, 26 Feb 2026 17:39:07 -0800 Subject: [PATCH] Refactor: Extract shell templates --- scripts/lib/templates.mjs | 76 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 scripts/lib/templates.mjs diff --git a/scripts/lib/templates.mjs b/scripts/lib/templates.mjs new file mode 100644 index 0000000..8a8479a --- /dev/null +++ b/scripts/lib/templates.mjs @@ -0,0 +1,76 @@ +import { SITE_URL } from "./constants.mjs"; +import { escapeHtml } from "./utils.mjs"; + +const logo = ` + + + + + + + + + + + + + + +`; + +export const shellHead = ({ title, desc, image, url, type = "website" }) => ` + + + + + ${title} + + + + + ${url ? `` : ""} + ${image ? `` : ""} + + ${url ? `` : ""} + + + + +`; + +export const nav = ` +
+ +
+`; + +export const footer = ` + + +`;