aboutsummaryrefslogtreecommitdiff
path: root/.eleventy.js
diff options
context:
space:
mode:
Diffstat (limited to '.eleventy.js')
-rw-r--r--.eleventy.js22
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",
+ },
+ };
+};