feat: set automatic year for copyright on build time
parent
eb04187362
commit
24f8c252ba
|
@ -49,6 +49,10 @@ module.exports = function(eleventyConfig) {
|
||||||
ul: true,
|
ul: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
eleventyConfig.addShortcode('getYear', () => {
|
||||||
|
return new Date().getFullYear();
|
||||||
|
});
|
||||||
|
|
||||||
eleventyConfig.addFilter("env", (key, def="NOT DEFINED") => process.env[key] || def);
|
eleventyConfig.addFilter("env", (key, def="NOT DEFINED") => process.env[key] || def);
|
||||||
|
|
||||||
eleventyConfig.addFilter("readableDate", (dateObj, format = "dd LLLL yyyy") => {
|
eleventyConfig.addFilter("readableDate", (dateObj, format = "dd LLLL yyyy") => {
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
<div class="footer-contact">
|
<div class="footer-contact">
|
||||||
<div>
|
<div>
|
||||||
<p class="footer-contact-title">IT's on us</p>
|
<p class="footer-contact-title">IT's on us</p>
|
||||||
<p>Copyright © 2022</p>
|
<p>Copyright © {% getYear %}</p>
|
||||||
</div>
|
</div>
|
||||||
<ul class="footer-links">
|
<ul class="footer-links">
|
||||||
<li>
|
<li>
|
||||||
|
|
Loading…
Reference in New Issue