lix-website/themes/lix/layouts/partials/utilities/image-fluid.html
2024-04-27 00:56:22 -06:00

8 lines
286 B
HTML

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