Skip to content

Commit bca6b2d

Browse files
committed
Use build time date for copyright
1 parent f8710cf commit bca6b2d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.eleventy.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ module.exports = function (eleventyConfig) {
99
eleventyConfig.addPassthroughCopy('./src/css/tailwind.include.css');
1010
eleventyConfig.addPassthroughCopy({ public: './' });
1111

12+
eleventyConfig.addShortcode('year', function () {
13+
return new Date().getFullYear().toString();
14+
});
15+
1216
eleventyConfig.addPlugin(inclusiveLangPlugin);
1317

1418
if (process.env.ELEVENTY_ENV === 'production') {

src/includes/footer.njk

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
class="flex justify-center items-start space-x-16 divide-x-2 divide-gray-100 divide"
55
>
66
<div class="px-2">
7-
<!-- <h6 class="uppercase text-sm font-semibold">Meetup</h6> -->
87
<h5
98
class="uppercase inline-block bg-black text-white font-bold px-4 mb-2 transform -rotate-1"
109
>
@@ -21,7 +20,6 @@
2120
</ul>
2221
</div>
2322
<div class="px-2">
24-
<!-- <h6 class="uppercase text-sm font-semibold">Connect</h6> -->
2523
<h5
2624
class="uppercase inline-block bg-black text-white font-bold px-4 mb-2 transform rotate-1"
2725
>
@@ -39,7 +37,7 @@
3937
</div>
4038
</div>
4139
<div class="text-center text-sm py-8">
42-
<p2020 JavaScriptMN</p>
40+
<p{% year %} JavaScriptMN</p>
4341
</div>
4442
</div>
4543
</footer>

0 commit comments

Comments
 (0)