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