From 94e336cc1e61de6ba25b1c56f9c8cf4a89a17158 Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Thu, 13 Apr 2023 17:40:11 -0600 Subject: [PATCH] handle SVG and GIF --- layouts/shortcodes/figure.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -}}