lix-website/themes/lix/layouts/partials/utilities/image-fluid.html
2024-05-05 10:13:02 -06:00

6 lines
320 B
HTML

{{ $img := resources.Get .image }}
{{ if eq $img.MediaType.SubType "svg" }}
<img class="img-fluid svg" src="{{ $img.Permalink }}" alt="{{ .alt }}" width="{{ .width }}">
{{ else }}
<img class="img-fluid raster" src="{{ $img.Permalink }}" alt="{{ .alt }}" width="{{ $img.Width }}" height="{{ $img.Height }}">
{{ end }}