@@ -11,6 +11,7 @@ const directories = {
1111 docs: join(process.cwd(), "content/docs"),
1212 grants: join(process.cwd(), "content/grants"),
1313 media: join(process.cwd(), "content/media"),
14+ "/": join(process.cwd(), "content"),
1415};
1516
1617export function getPostSlugs(key) {
@@ -49,7 +50,7 @@ export function getPostBySlug(slug, fields = [], key) {
4950 });
5051
5152 // NB Gavin: This could be removed if the TOML engine returned a JSON date (string) instead of a JS Date object. The YAML engine did this parsing by default.
52− items.date = JSON.stringify(items.date).replace(/\"/g, "");
53+ items.date = JSON.stringify(items?.date)?.replace(/\"/g, "") || "";
5354
5455 return items;
5556}