Show day on post page

This commit is contained in:
Zach Leatherman
2022-08-15 15:00:08 -05:00
parent df6a44bf80
commit 57e1a3d262
2 changed files with 3 additions and 3 deletions

View File

@@ -27,8 +27,8 @@ module.exports = function(eleventyConfig) {
errorMode: "allow-fallback",
});
eleventyConfig.addFilter("readableDate", dateObj => {
return DateTime.fromJSDate(dateObj, {zone: 'utc'}).toFormat("LLLL yyyy");
eleventyConfig.addFilter("readableDate", (dateObj, format = "dd LLLL yyyy") => {
return DateTime.fromJSDate(dateObj, {zone: 'utc'}).toFormat(format);
});
// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-date-string