Fix warning message for portable links, remove 'Image' from message

This commit is contained in:
Alex Shpak
2026-04-23 17:10:19 +02:00
parent 743b389f5d
commit ae912cc38d
@@ -17,7 +17,7 @@
{{- $destination = .RelPermalink -}}
{{- else -}}
{{- $mode := .Page.Site.Params.BookPortableLinks -}}
{{- $message := printf "Image reference '%s' not found in '%s'" .Destination .Page.RelPermalink -}}
{{- $message := printf "Reference '%s' not found in '%s'" .Destination .Page.RelPermalink -}}
{{- if eq $mode "warning" -}}
{{- warnf $message -}}
{{- else if eq $mode "error" -}}