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 = ` +
+
+ + ${logo} +
+

apophenia.news

+

for pattern seekers

+
+
+ + + +
+
+`; + +export const footer = ` + + +`;