This commit is contained in:
bronku 2026-06-10 17:38:42 +02:00
parent b95d5c2ee5
commit a4822fce6c
221 changed files with 353 additions and 81 deletions

View file

@ -21,15 +21,14 @@ func processImage(fileName string) string {
log.Fatal(err)
}
return dst[4:]
return "/" + dst[4:]
}
templ AvifImage(srcPath, alt string, lazy bool, priority bool) {
templ AvifImage(srcPath, alt string, lazy bool) {
<img src={ processImage(srcPath) } alt={ alt }
if lazy {
loading="lazy"
}
if priority {
} else {
fetchpriority="high"
}
/>