set post date based on git

This commit is contained in:
2024-03-24 19:22:21 +05:30
parent 059fbb7c41
commit 47c65ec82c

View File

@@ -20,4 +20,8 @@ module.exports = function(eleventyConfig){
eleventyConfig.addDataExtension("yml, yaml",
contents => require('js-yaml').load(contents)
)
if(process.env.NODE_ENV==="production"){
eleventyConfig.addGlobalData('date', 'git Last Modified');
}
}