Allowing other extensions for app images.

This commit is contained in:
Ad5001 2021-10-04 10:00:45 +02:00
parent 1942ecf382
commit 43c23b4f27
Signed by: Ad5001
GPG Key ID: 7251B1AF90B960F9
1 changed files with 3 additions and 3 deletions

View File

@ -30,11 +30,11 @@
{{ .Content | markdownify }}
</div>
<div class="column col2">
<img class="vertical-center fill-width" alt="{{ .Alt }}" src="/img/{{ .Image }}.png" loading="lazy"/>
<img class="vertical-center fill-width" alt="{{ .Alt }}" src="/img/{{ .Image }}" loading="lazy"/>
</div>
{{ else if eq .Type "image|text" }}
<div class="column col2">
<img class="vertical-center fill-width" alt="{{ .Alt }}" src="/img/{{ .Image }}.png" loading="lazy"/>
<img class="vertical-center fill-width" alt="{{ .Alt }}" src="/img/{{ .Image }}" loading="lazy"/>
</div>
<div class="column col2 text-left vertical-center">
{{ .Content | markdownify }}
@ -42,7 +42,7 @@
{{ else if eq .Type "text/image" }}
<div class="column text-center">
{{ .Content | markdownify }}
<img src="/img/{{ .Image }}.png" alt="{{ .Alt }}" loading="lazy"/>
<img src="/img/{{ .Image }}" alt="{{ .Alt }}" loading="lazy"/>
</div>
{{ else if eq .Type "text" }}
<div class="column text-center">