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
In page bundles, the default template tries to resize all bundled images. This fails on *.svg .
{{ with $imgResource }}width="{{ .Width }}px" height="{{ .Height }}px"{{ end }}
Error message:
render: failed to render pages: render of "[...]/content/about/_index.md" failed:
"[...]/themes/typo/layouts/_default/list.html:8:7": execute of template failed at
<.Content>: error calling Content: "[...]/content/about/_index.md:1:1":
"[...]/themes/typo/layouts/_default/_markup/render-image.html:50:96": execute of
template failed at <.Width>: error calling Width: this method is only available
for raster images. To determine if an image is SVG, you can do
{{ if eq .MediaType.SubType "svg" }}{{ end }}
Interestingly enough, this does not happen when loading images from the global /asset folder.
The text was updated successfully, but these errors were encountered:
In page bundles, the default template tries to resize all bundled images. This fails on *.svg .
Error message:
Interestingly enough, this does not happen when loading images from the global
/asset
folder.The text was updated successfully, but these errors were encountered: