diff --git a/site/layouts/partials/footer.html b/site/layouts/partials/footer.html
index c10a5ff..3f88c40 100644
--- a/site/layouts/partials/footer.html
+++ b/site/layouts/partials/footer.html
@@ -35,6 +35,6 @@
-
+
diff --git a/src/index.js b/src/index.js
index 3a1017c..a011092 100644
--- a/src/index.js
+++ b/src/index.js
@@ -49,6 +49,14 @@ function initMapbox() {
.addTo(map);
}
+function setCopyDate() {
+ const el = document.getElementById("js-copy-date");
+ if (el) {
+ const year = new Date().getFullYear();
+ el.innerHTML = year;
+ }
+}
+
window.addEventListener("DOMContentLoaded", () => {
const swup = new Swup({
plugins: [new SwupPreloadPlugin(), new SwupScrollPlugin()]
@@ -60,6 +68,7 @@ window.addEventListener("DOMContentLoaded", () => {
initMapbox();
});
+ setCopyDate();
initBlocks();
initMapbox();
});