The Svelte 5 SSG migration—we brought sexy back... or to it? Or something...
Some checks failed
ci/woodpecker/pr/pr Pipeline failed
Some checks failed
ci/woodpecker/pr/pr Pipeline failed
This commit is contained in:
7
src/lib/copyright-year.ts
Normal file
7
src/lib/copyright-year.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Returns the current calendar year (for testing and any server use).
|
||||
* The client-side footer year is updated by static/copyright-year.js.
|
||||
*/
|
||||
export function getCurrentYear(): number {
|
||||
return new Date().getFullYear();
|
||||
}
|
||||
Reference in New Issue
Block a user