Add current build date to output
This commit is contained in:
parent
c37673b2b9
commit
a2a22ed195
@ -56,6 +56,6 @@
|
||||
|
||||
<footer></footer>
|
||||
|
||||
<!-- Current page: {{ page.url | htmlBaseUrl }} -->
|
||||
<!-- This page `{{ page.url | htmlBaseUrl }}` was built on {% currentBuildDate %} -->
|
||||
</body>
|
||||
</html>
|
||||
|
@ -92,6 +92,10 @@ module.exports = function(eleventyConfig) {
|
||||
});
|
||||
});
|
||||
|
||||
eleventyConfig.addShortcode("currentBuildDate", () => {
|
||||
return (new Date()).toISOString();
|
||||
})
|
||||
|
||||
// Features to make your build faster (when you need them)
|
||||
|
||||
// If your passthrough copy gets heavy and cumbersome, add this line
|
||||
|
Loading…
Reference in New Issue
Block a user