Allowing other extensions for app images.

This commit is contained in:
Adsooi 2021-10-04 10:00:45 +02:00
parent 1942ecf382
commit 43c23b4f27
Signed by: Ad5001
GPG key ID: 7251B1AF90B960F9

View file

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