Compare commits
3 Commits
57cc65e31e
...
2c5efe83d9
| Author | SHA1 | Date | |
|---|---|---|---|
| 2c5efe83d9 | |||
| 28b657d871 | |||
| 42ccfdea7d |
@@ -1,6 +1,6 @@
|
|||||||
TODO:
|
TODO:
|
||||||
---------------------
|
---------------------
|
||||||
Integrate recipe structured data for recipe type articles
|
Move hard-coded copy to metadata.
|
||||||
|
|
||||||
Quiz Ideas:
|
Quiz Ideas:
|
||||||
---------------------
|
---------------------
|
||||||
|
|||||||
6
content/status/Status_2026-01-07_19:49.md
Normal file
6
content/status/Status_2026-01-07_19:49.md
Normal 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!
|
||||||
|
---
|
||||||
|
|
||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user