Template
set post date based on git
This commit is contained in:
1 file changed
+4
@@ -20,4 +20,8 @@ module.exports = function(eleventyConfig){
|
|||||||
eleventyConfig.addDataExtension("yml, yaml",
|
eleventyConfig.addDataExtension("yml, yaml",
|
||||||
contents => require('js-yaml').load(contents)
|
contents => require('js-yaml').load(contents)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(process.env.NODE_ENV==="production"){
|
||||||
|
eleventyConfig.addGlobalData('date', 'git Last Modified');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user