feat: added year Shortcode

This commit is contained in:
Laureηt 2020-11-19 16:24:32 +01:00
parent 066e25cf21
commit fbac0713f7

View file

@ -6,6 +6,11 @@ module.exports = function(eleventyConfig) {
"node_modules/chaffle/docs/chaffle.min.js": "javascript/chaffle.min.js"
});
eleventyConfig.addShortcode("year", () => {
let year = new Date().getFullYear();
return year.toString();
});
return {
dir: {
input: "pages"