mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
committed by
Bjørn Erik Pedersen
parent
6c68142cc1
commit
33b46d8a41
@@ -388,7 +388,6 @@ func (r *resourceAdapter) getImageOps() images.ImageResourceOps {
|
||||
if r.MediaType().SubType == "svg" {
|
||||
panic("this method is only available for raster images. To determine if an image is SVG, you can do {{ if eq .MediaType.SubType \"svg\" }}{{ end }}")
|
||||
}
|
||||
fmt.Println(r.MediaType().SubType)
|
||||
panic("this method is only available for image resources")
|
||||
}
|
||||
r.init(false, false)
|
||||
|
Reference in New Issue
Block a user