From 67dbc490de261318f1190d1e7e46dd9272f51ef6 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Sat, 27 Aug 2022 04:43:46 +0530 Subject: Initial Commit * MVP --- .eleventy.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .eleventy.js (limited to '.eleventy.js') diff --git a/.eleventy.js b/.eleventy.js new file mode 100644 index 0000000..554bb54 --- /dev/null +++ b/.eleventy.js @@ -0,0 +1,22 @@ +/*jshint esversion: 6 */ + +const dayjs = require("dayjs"); + +module.exports = function (config) { + config.addPassthroughCopy("./src/css"); + config.addWatchTarget("./src/css"); + config.addPassthroughCopy({ + "src/css/fonts": "./fonts", + }); + + config.addFilter("dateFilter", function (date) { + return dayjs(date).format("DD MMM YYYY"); + }); + + return { + dir: { + input: "src", + output: "public", + }, + }; +}; -- cgit v1.2.3