diff --git a/.eleventy.js b/.eleventy.js index 08bf790..0f524f7 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -1,6 +1,6 @@ module.exports = function (eleventyConfig) { eleventyConfig.addPassthroughCopy ("src/media"); - eleventyConfig.addPassthroughCopy ("src/resources"); + eleventyConfig.addPassthroughCopy ({ "src/resources": "/" }); eleventyConfig.addPassthroughCopy ("src/robots.txt"); eleventyConfig.addPlugin( require("@11ty/eleventy-plugin-rss") ); @@ -22,6 +22,12 @@ module.exports = function (eleventyConfig) { }).toFormat("yyyy-MM-dd"); }); + eleventyConfig.addFilter("postDate", dateObj => { + return DateTime.fromJSDate(dateObj, { + zone: 'utc' + }).toFormat("DDDD"); + }); + return { dir: { input: "src", diff --git a/src/_includes/post.njk b/src/_includes/post.njk index db1829c..a9a43de 100644 --- a/src/_includes/post.njk +++ b/src/_includes/post.njk @@ -1,8 +1,10 @@ --- layout: base.njk --- -