Rename checkResolves to checkPathResolves

This commit is contained in:
2026-09-30 21:45:26 +02:00
committed by Lillem4n
parent 698ac036d5
commit 0b5124d4d5
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ func (t *template) resolveLink(folder []string, path, category string, root map[
if category != "" && head == "/"+category {
return link, fmt.Errorf("%s: reference {%s}: names the category it sits in; read a sibling field as a path, or move the shared value into its own category and reference that", path, name)
}
if err := checkResolves(target, tail, head); err != nil {
if err := checkPathResolves(target, tail, head); err != nil {
return link, fmt.Errorf("%s: reference {%s}: %w", path, name, err)
}
link.refHeads[head] = target