diff --git a/flake.nix b/flake.nix index 153b870..f812ef5 100644 --- a/flake.nix +++ b/flake.nix @@ -65,6 +65,7 @@ installPhase = '' makeWrapper $out/bin/webbisitey $out/bin/webbisitey-wrapped --run 'cd $(dirname $0)'; # im too lazy to add a path argument so cd into the correct folder so it can serve files. cp -r $runtime $out/bin/public + substituteInPlace $out/bin/public/index.html --replace "{{{VERSION}}}" "Built $(date +%Y-%m-%d\ %H:%M:%S)" ''; meta = { diff --git a/public/index.html b/public/index.html index fbaadad..564080d 100644 --- a/public/index.html +++ b/public/index.html @@ -13,6 +13,13 @@ .club512 { border-radius: calc(var(--radius)/2); } + #version { + position: fixed; + right: 1em; + bottom: 0; + opacity: 0.3; + color: var(--text); + } @@ -48,11 +55,11 @@ next →
+{{{VERSION}}}