feat: added year Shortcode
This commit is contained in:
parent
066e25cf21
commit
fbac0713f7
|
@ -6,6 +6,11 @@ module.exports = function(eleventyConfig) {
|
||||||
"node_modules/chaffle/docs/chaffle.min.js": "javascript/chaffle.min.js"
|
"node_modules/chaffle/docs/chaffle.min.js": "javascript/chaffle.min.js"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
eleventyConfig.addShortcode("year", () => {
|
||||||
|
let year = new Date().getFullYear();
|
||||||
|
return year.toString();
|
||||||
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
dir: {
|
dir: {
|
||||||
input: "pages"
|
input: "pages"
|
||||||
|
|
Reference in a new issue