Fix trailing slash when rendering post images

This commit is contained in:
Joshua Goins 2023-04-17 14:24:44 -04:00
parent d48ecdf1bc
commit d14a5cffb3

View file

@ -16,9 +16,9 @@
<figure>
<a href="{{ $img.RelPermalink }}" data-download="true">
{{ if eq .MediaType.SubType "svg" }}
<img class="article-img" src="{{ $img.RelPermalink }}" alt="{{ $.Text }}" title="{{ $.Text }}"/>
<img class="article-img" src="{{ $img.RelPermalink }}" alt="{{ $.Text }}" title="{{ $.Text }}">
{{ else }}
<img class="article-img" width="{{ $img.Width }}" height="{{ $img.Height }}" src="{{ $img.RelPermalink }}" alt="{{ $.Text }}" title="{{ $.Text }}" />
<img class="article-img" width="{{ $img.Width }}" height="{{ $img.Height }}" src="{{ $img.RelPermalink }}" alt="{{ $.Text }}" title="{{ $.Text }}">
{{ end }}
</a>