mirror of
https://github.com/TrezOne/congo-hindi-gujarati.git
synced 2026-07-22 10:40:13 -04:00
🔀 Merge pull request #427 from kpavlov/patch-1
🐛 Fix render-image.html for SVG
This commit is contained in:
@@ -15,6 +15,13 @@
|
||||
{{ end }}
|
||||
{{ with $resource }}
|
||||
<figure>
|
||||
{{ if eq .MediaType.SubType "svg" }}
|
||||
<img
|
||||
class="my-0 rounded-md"
|
||||
src="{{ .RelPermalink }}"
|
||||
alt="{{ $altText }}"
|
||||
/>
|
||||
{{ else }}
|
||||
<img
|
||||
class="my-0 rounded-md"
|
||||
srcset="
|
||||
@@ -25,6 +32,7 @@
|
||||
src="{{ (.Resize "660x").RelPermalink }}"
|
||||
alt="{{ $altText }}"
|
||||
/>
|
||||
{{ end }}
|
||||
{{ with $caption }}<figcaption>{{ . | markdownify }}</figcaption>{{ end }}
|
||||
</figure>
|
||||
{{ else }}
|
||||
|
||||
Reference in New Issue
Block a user