Skip to content

Commit c1bb1de

Browse files
authored
Automatically update the "year" in the footer (#91)
1 parent 6204e02 commit c1bb1de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/routes/+layout.svelte

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
url.port = '';
1919
return url.toString();
2020
});
21+
22+
let currentYear = new Date().getFullYear();
2123
</script>
2224

2325
<ModeWatcher />
@@ -34,7 +36,7 @@
3436

3537
<footer class="font-zinc-500 border-t p-6 px-4 text-sm">
3638
<div class="xl:container">
37-
<p>&copy; 2024 Svelte Maplibre GL contributors</p>
39+
<p>&copy; {currentYear} Svelte Maplibre GL contributors</p>
3840
</div>
3941
</footer>
4042

0 commit comments

Comments
 (0)