We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e8f86e commit a1b0b15Copy full SHA for a1b0b15
src/lib/components/layout/Footer.svelte
@@ -2,11 +2,18 @@
2
import { GITHUB_URL_VERT, DISCORD_URL } from "$lib/util/consts";
3
import { m } from "$lib/paraglide/messages";
4
5
+ const commitHash =
6
+ __COMMIT_HASH__ && __COMMIT_HASH__ !== "unknown"
7
+ ? __COMMIT_HASH__
8
+ : null;
9
+
10
const items = $derived([
11
[m["footer.source_code"](), GITHUB_URL_VERT],
12
[m["footer.discord_server"](), DISCORD_URL],
13
[m["footer.privacy_policy"](), "/privacy"],
- [__COMMIT_HASH__, `${GITHUB_URL_VERT}/commit/${__COMMIT_HASH__}`]
14
+ ...(commitHash
15
+ ? [[commitHash, `${GITHUB_URL_VERT}/commit/${commitHash}`]]
16
+ : []),
17
]);
18
19
const year = new Date().getFullYear();
0 commit comments