You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Including an SVG from a page bundle results in an error due to use of Resize method on none raster image. The image can be included fine from static.
Theme version
v2.4.2
Hugo version
v0.108.0
What browsers are you seeing the problem on?
No response
Relevant Hugo log output
"/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/jpanther/congo/v2@v2.4.2/layouts/_default/_markup/render-image.html:21:14": execute of template failed at <.Resize>: error calling Resize: this method is only available for raster images. To determine if an image is SVG, you can do {{ if eq .MediaType.SubType "svg" }}{{ end }}
/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/jpanther/congo/v2@v2.4.2/layouts/_default/_markup/render-image.html:21:14:
class="my-0 rounded-md"
srcset=" {{ (.Resize "330x").RelPermalink }} 330w, {{ (.Resize "660x").RelPermalink }} 660w, {{ (.Resize "1024x").RelPermalink }} 1024w,
The text was updated successfully, but these errors were encountered:
What happened?
Including an SVG from a page bundle results in an error due to use of Resize method on none raster image. The image can be included fine from static.
Theme version
v2.4.2
Hugo version
v0.108.0
What browsers are you seeing the problem on?
No response
Relevant Hugo log output
The text was updated successfully, but these errors were encountered: