Migrate hypview

This commit is contained in:
Timur Ismagilov 2024-09-07 22:02:59 +03:00
parent fcb66f2098
commit ab82ba2b73

View File

@ -3,7 +3,7 @@ package hypview
import (
"embed"
"html/template"
"log"
"log/slog"
"strings"
"github.com/bouncepaw/mycorrhiza/internal/backlinks"
@ -66,7 +66,7 @@ func NaviTitle(meta viewutil.Meta, hyphaName string) template.HTML {
HomeHypha: cfg.HomeHypha,
})
if err != nil {
log.Println(err)
slog.Error("Failed to render NaviTitle properly; using nevertheless", "err", err)
}
return template.HTML(buf.String())
}