diff options
author | Indrajith K L | 2022-08-27 04:43:46 +0530 |
---|---|---|
committer | Indrajith K L | 2022-08-27 04:44:07 +0530 |
commit | 67dbc490de261318f1190d1e7e46dd9272f51ef6 (patch) | |
tree | ede2dfca42cb8a4b08824e40cfbb885f25bd236d /.eleventy.js | |
download | indrajith-dev-67dbc490de261318f1190d1e7e46dd9272f51ef6.tar.gz indrajith-dev-67dbc490de261318f1190d1e7e46dd9272f51ef6.tar.bz2 indrajith-dev-67dbc490de261318f1190d1e7e46dd9272f51ef6.zip |
Initial Commit
* MVP
Diffstat (limited to '.eleventy.js')
-rw-r--r-- | .eleventy.js | 22 |
1 files changed, 22 insertions, 0 deletions
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", + }, + }; +}; |