set post date based on git

This commit is contained in:
kevinnlsamuel committed 2024-03-24 22:24:31 +05:30
1 parent 059fbb7c41
commit 47c65ec82c
1 file changed
+4
+4
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');
}
}