chore: use json logger

This commit is contained in:
2026-03-09 09:23:31 +01:00
parent bc900e1450
commit a27b4a66e6
6 changed files with 31 additions and 11 deletions
+2 -1
View File
@@ -22,13 +22,14 @@ templ Base(cfg config.Cfg, title string) {
<header
class="fixed z-50 mix-blend-difference p-1 w-full flex justify-between items-start"
>
<a class="text-white text-2xl" href={ translate.Path(ctx, "") }>schreifuchs.ch</a>
<a class="text-white text-2xl" href={ translate.Path(ctx, "") } preload="mouseover" preload-images="true">schreifuchs.ch</a>
<nav class="flex gap-2 p-2">
for _, lang := range translate.SupportedLanguages(ctx) {
<a
href={ translate.PathForLang(ctx, lang, strings.Split(templer.Path(ctx), "/")...) }
hreflang={ lang }
data-no-translate
preload="mouseover"
class="text-white hover:underline uppercase"
>
{ lang }
+6 -1
View File
@@ -9,7 +9,12 @@ import (
templ Home(pages []page.PageHeader) {
for _, page := range pages {
@components.ImageTile("/images/" + page.CoverImageUID) {
<a class="flex items-center justify-center h-full " href={ translate.Path(ctx, "/"+page.UID) } preload="mouseover">
<a
class="flex items-center justify-center h-full "
href={ translate.Path(ctx, "/"+page.UID) }
preload="mouseover"
preload-images="true"
>
<h2
class="text-3xl font-bold text-white hover:underline text-shadow-lg"
>
File diff suppressed because one or more lines are too long