Compare commits

...

3 Commits

Author SHA1 Message Date
2c5efe83d9 Undo timezone jiggery-pokery. 2026-01-07 20:44:45 -06:00
28b657d871 Update project notes 2026-01-07 20:44:20 -06:00
42ccfdea7d Update last status 2026-01-07 20:43:50 -06:00
3 changed files with 7 additions and 23 deletions

View File

@@ -1,6 +1,6 @@
TODO: TODO:
--------------------- ---------------------
Integrate recipe structured data for recipe type articles Move hard-coded copy to metadata.
Quiz Ideas: Quiz Ideas:
--------------------- ---------------------

View File

@@ -0,0 +1,6 @@
---
date: 2026-01-07 19:48:00
emoji: 🪱
comment: Looks like my new status feature is working as it should!
---

View File

@@ -17,29 +17,7 @@ const figoptions = {
figcaption: true, figcaption: true,
}; };
const timeZone = "America/Chicago";
export default async function (eleventyConfig) { export default async function (eleventyConfig) {
// Helper Functions
eleventyConfig.addDateParsing((dateValue) => {
let localDate;
if (dateValue instanceof Date) {
// and YAML
localDate = DateTime.fromJSDate(dateValue, { zone: "utc" }).setZone(
timeZone,
{ keepLocalTime: true },
);
} else if (typeof dateValue === "string") {
localDate = DateTime.fromISO(dateValue, { zone: timeZone });
}
if (localDate?.isValid === false) {
throw new Error(
`Invalid \`date\` value (${dateValue}) is invalid for ${this.page.inputPath}: ${localDate.invalidReason}`,
);
}
return localDate;
});
// Collections // Collections
eleventyConfig.addCollection("galleryImages", (collection) => { eleventyConfig.addCollection("galleryImages", (collection) => {
const galleries = collection.getAll()[0].data.galleries; const galleries = collection.getAll()[0].data.galleries;