diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index ad3261d..62db234 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -4,7 +4,7 @@ {{ $src := $.Page.Resources.GetMatch (.Get "src") }} {{ if ( not $src ) }} - {{- errorf "No Page Resource found for src '%v' for post '%v'" ( .Get "src" ) $.Page.Title -}} + {{- errorf "No Page Resource found for src '%v' for post '%v'" ( .Get "src" ) $.File.Path -}} {{ end }} {{ $linkedResource := $.Page.Resources.GetMatch (.Get "link") }} @@ -37,7 +37,7 @@ {{- if eq $src.ResourceType "image" -}}