Skip to content

Commit

Permalink
Automatically update the "year" in the footer (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
sorami authored Feb 11, 2025
1 parent 6204e02 commit c1bb1de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
url.port = '';
return url.toString();
});
let currentYear = new Date().getFullYear();
</script>

<ModeWatcher />
Expand All @@ -34,7 +36,7 @@

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

Expand Down

0 comments on commit c1bb1de

Please sign in to comment.