fixed relative path normalizing

This commit is contained in:
Daniel Fichtinger 2025-05-03 00:00:16 -04:00
parent 8895ba969c
commit 99bc128578
2 changed files with 21 additions and 16 deletions

View file

@ -59,7 +59,7 @@ func buildPageData(m Metadata, in string, out string, settings *Settings) *PageD
p.Title = util.PathToTitle(in)
}
if icon, ok := m["icon"].(string); ok {
i, err := util.NormalizePath(icon)
i, err := util.NormalizePath(icon, in)
if err != nil {
p.Icon = settings.IconName
} else {