diff options
author | Ivan Boothe <git@rootwork.org> | 2022-05-17 03:10:29 +0300 |
---|---|---|
committer | Ivan Boothe <git@rootwork.org> | 2022-05-17 03:10:29 +0300 |
commit | 7b8a2ac27c66be4852c2e5d7dd1d7d145f90007d (patch) | |
tree | 806089ed64ab2e62c3d7930d21a0954c405fb785 /layouts | |
parent | 9c6e83697a84f3075be51057e2d1468709f650fd (diff) |
MainType -> MediaType
Signed-off-by: Ivan Boothe <git@rootwork.org>
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/_markup/render-image.html | 2 | ||||
-rw-r--r-- | layouts/partials/image.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 03c1802..bc18a77 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -18,7 +18,7 @@ {{- if strings.HasPrefix $file "http" -}} {{- $scratch.Add "classes" " image_external" -}} {{- $image = resources.GetRemote $file -}} - {{- with $image.MediaType.MainType }} + {{- with $image.MediaType }} {{- if eq $image.MediaType.MainType "image" -}} {{- if eq $image.MediaType.SubType "svg" -}} {{- $image = "" -}} diff --git a/layouts/partials/image.html b/layouts/partials/image.html index fbd8003..3b10854 100644 --- a/layouts/partials/image.html +++ b/layouts/partials/image.html @@ -28,7 +28,7 @@ {{- if strings.HasPrefix $file "http" -}} {{- $scratch.Add "classes" " image_external" -}} {{- $image = resources.GetRemote $file -}} - {{- with $image.MediaType.MainType }} + {{- with $image.MediaType }} {{- if eq $image.MediaType.MainType "image" -}} {{- if eq $image.MediaType.SubType "svg" -}} {{- $image = "" -}} |