Update JS front matter name, use cross-env where available, adds build-nocolor script

This commit is contained in:
Zach Leatherman
2024-07-16 09:38:01 -05:00
parent c1d0bf9301
commit 499ca5e655
4 changed files with 10 additions and 8 deletions

View File

@@ -8,7 +8,7 @@ export default function(eleventyConfig) {
eleventyConfig.addFilter("htmlDateString", (dateObj) => {
// dateObj input: https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-date-string
return DateTime.fromJSDate(dateObj, {zone: 'utc'}).toFormat('yyyy-LL-dd');
return DateTime.fromJSDate(dateObj, { zone: "utc" }).toFormat('yyyy-LL-dd');
});
// Get the first `n` elements of a collection.