CSS was not being imported! Fixed: ✅ Added 'import ../styles/global.css' to BaseLayout.astro ✅ Rewrote CSS with plain CSS (not @apply which wasn't working) ✅ Cookie banner has inline styles as backup ✅ Font size: 16px base ✅ Solid colors: green-600 (#16a34a), gray-900 (#111827) ✅ Footer has policy links Build: 12 pages ✅
21 lines
416 B
JavaScript
21 lines
416 B
JavaScript
import fs from "node:fs/promises";
|
|
const frontmatterRE = /^---(.*?)^---/ms;
|
|
async function loadId(pluginContainer, id) {
|
|
const result = await pluginContainer.load(id, { ssr: true });
|
|
if (result) {
|
|
if (typeof result === "string") {
|
|
return result;
|
|
} else {
|
|
return result.code;
|
|
}
|
|
}
|
|
try {
|
|
return await fs.readFile(id, "utf-8");
|
|
} catch {
|
|
}
|
|
}
|
|
export {
|
|
frontmatterRE,
|
|
loadId
|
|
};
|