lix-website/themes/lix/layouts/partials/utilities/image-fluid.html

6 lines
320 B
HTML
Raw Normal View History

{{ $img := resources.Get .image }}
{{ if eq $img.MediaType.SubType "svg" }}
<img class="img-fluid svg" src="{{ $img.Permalink }}" alt="{{ .alt }}" width="{{ .width }}">
2024-04-27 06:56:22 +00:00
{{ else }}
<img class="img-fluid raster" src="{{ $img.Permalink }}" alt="{{ .alt }}" width="{{ $img.Width }}" height="{{ $img.Height }}">
{{ end }}