New theme blowfish

This commit is contained in:
2025-10-10 00:33:18 +02:00
parent 7b65855277
commit 172548d5c0
3722 changed files with 437 additions and 170 deletions

View File

@@ -0,0 +1,20 @@
<img id="random-image" alt="Random image" />
<script>
const images = [
{{- $files := readDir "static/img/calvin_hobbes" -}}
{{- range $i, $f := $files -}}
{{- if not $f.IsDir -}}
"{{ printf "/img/calvin_hobbes/%s" $f.Name }}",
{{- end -}}
{{- end -}}
];
(function(){
if(images.length === 0) return;
var img = document.getElementById("random-image");
if(!img) return;
var rand = images[Math.floor(Math.random() * images.length)];
img.src = rand;
})();
</script>