-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eleventy.js
15 lines (15 loc) · 924 Bytes
/
.eleventy.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module.exports = function (eleventyConfig) {
eleventyConfig.addPassthroughCopy({
"node_modules/patternomaly/dist/patternomaly.js": "js/patternomaly.js",
"node_modules/chart.js/dist/chart.min.js": "js/chart.min.js",
"node_modules/@fortawesome/fontawesome-free/js/all.min.js": "js/all.min.js",
"node_modules/@fortawesome/fontawesome-free/css/all.min.css": "css/all.min.css",
"node_modules/@fortawesome/fontawesome-free/webfonts": "webfonts",
"node_modules/bootstrap/dist/css/bootstrap.min.css": "css/bootstrap.min.css",
"node_modules/countup.js/dist/countUp.js": "js/countUp.js",
});
eleventyConfig.setTemplateFormats("html,liquid,njk,md");
eleventyConfig.addCollection("top3Donations", function(collectionApi) {
return collectionApi.getFilteredByTag("total").sort((a, b) => b.data.totalDonations - a.data.totalDonations).slice(0,3);
});
};