${fmtDate(a.date)}
++ ${escapeHtml(a.title)} +
+${escapeHtml(a.description || "")}
+diff --git a/scripts/generate-pages.mjs b/scripts/generate-pages.mjs new file mode 100644 index 0000000..78a0af0 --- /dev/null +++ b/scripts/generate-pages.mjs @@ -0,0 +1,216 @@ +import fs from "node:fs/promises"; +import path from "node:path"; +import fg from "fast-glob"; +import matter from "gray-matter"; +import { marked } from "marked"; + +const ROOT = process.cwd(); +const SRC = path.join(ROOT, "src"); +const ARTICLES_GLOB = "articles/**/index.md"; + +marked.setOptions({ breaks: true, gfm: true }); + +const logo = ` +`; + +const shellHead = ({ title, desc, image }) => ` + +
+ + +Pattern Intelligence Journalism
+High-agency analysis at the intersection of AGI, consciousness, geopolitics, and first-contact logic.
+${fmtDate(a.date)}
+${escapeHtml(a.description || "")}
+${fmtDate(article.date)} • ${escapeHtml(article.author || "Apophenia")}
+${escapeHtml(article.description || "")}
+