blob: e5d82605f91afca23631a1b52da0a3c974c2ae7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/*jshint esversion: 6 */
const dayjs = require("dayjs");
const faviconPlugin = require("eleventy-favicon");
const eleventyPluginFeathericons = require('eleventy-plugin-feathericons');
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
module.exports = function (config) {
config.addPassthroughCopy({
'src/_includes/assets/css/styles.css': './styles.css'
});
config.addPassthroughCopy({
"src/css/fonts": "./fonts",
});
config.addPassthroughCopy({
"src/images": "./images",
});
config.addPlugin(faviconPlugin, {
destination: './public'
});
config.addWatchTarget("./src/css");
config.addPlugin(eleventyPluginFeathericons);
config.addPlugin(syntaxHighlight);
config.addFilter("dateFilter", function (date) {
return dayjs(date).format("DD MMM YYYY");
});
return {
dir: {
input: "src",
output: "public",
},
};
};
|