websegura/.eleventy.js
2021-01-16 18:03:36 +01:00

14 lines
429 B
JavaScript

module.exports = function (eleventyConfig) {
eleventyConfig.addPassthroughCopy("assets");
eleventyConfig.addPassthroughCopy("images");
eleventyConfig.addNunjucksFilter("color", function(value) {
if (value < 50) {
return "#c60c0c45";
}
// TODO complete with all values available in Mozilla Observatory
// and use "grade" (A, B, etc) instead of the numeric "score".
return "inherit";
});
};