Fix trailing slash when rendering post images
This commit is contained in:
parent
d48ecdf1bc
commit
d14a5cffb3
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue