added automatic built date in corner
All checks were successful
Restart Website Service / restart_service (push) Successful in 29s

This commit is contained in:
Snorre Ettrup Altschul 2025-04-01 22:10:17 +02:00
parent b5b4a9438c
commit 4e7d9d321c
2 changed files with 12 additions and 4 deletions

View file

@ -65,6 +65,7 @@
installPhase = '' 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. 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 cp -r $runtime $out/bin/public
substituteInPlace $out/bin/public/index.html --replace "{{{VERSION}}}" "Built $(date +%Y-%m-%d\ %H:%M:%S)"
''; '';
meta = { meta = {

View file

@ -13,6 +13,13 @@
.club512 { .club512 {
border-radius: calc(var(--radius)/2); border-radius: calc(var(--radius)/2);
} }
#version {
position: fixed;
right: 1em;
bottom: 0;
opacity: 0.3;
color: var(--text);
}
</style> </style>
</head> </head>
@ -48,11 +55,11 @@
<a href="https://nixwebr.ing/next/spoody">next &rightarrow;</a> <a href="https://nixwebr.ing/next/spoody">next &rightarrow;</a>
</div> </div>
<div class="footer" style="grid-area: footer3; text-align: center;"> <div class="footer" style="grid-area: footer3; text-align: center;">
<a href="https://512kb.club" style="padding:0"><img style="aspect-ratio: 234.383/30; margin-bottom: -5px" class="club512" height=24 <a href="https://512kb.club" style="padding:0"><img style="aspect-ratio: 234.383/30; margin-bottom: -5px"
alt="512KB Club" class="club512" height=24 alt="512KB Club" src="https://512kb.club/assets/images/green-team.svg"></a>
src="https://512kb.club/assets/images/green-team.svg"></a>
</div> </div>
</div> </div>
<p id="version">{{{VERSION}}}</p>
<div id="background"></div> <div id="background"></div>
<script src="/js/main.js"></script> <script src="/js/main.js"></script>
<script> <script>
@ -70,7 +77,7 @@
p.innerHTML = "This is where I would put my posts...<br>IF I HAD ANY!"; p.innerHTML = "This is where I would put my posts...<br>IF I HAD ANY!";
let elem = document.querySelector("#content>.content.posts>ul"); let elem = document.querySelector("#content>.content.posts>ul");
elem.remove(); elem.remove();
return; return;
} }