forked from lix-project/lix-website
4e7c2d2987
(why the hell was alt text support not in the original hugo theme???)
6 lines
299 B
HTML
6 lines
299 B
HTML
{{ $img := resources.Get .image }}
|
|
{{ if eq $img.MediaType.SubType "svg" }}
|
|
<img class="img-fluid svg" src="{{ $img.Permalink }}" alt="{{ .alt }}">
|
|
{{ else }}
|
|
<img class="img-fluid raster" src="{{ $img.Permalink }}" alt="{{ .alt }}" width="{{ $img.Width }}" height="{{ $img.Height }}">
|
|
{{ end }} |