Provide width and height for images

pull/645/head
stereobooster 2023-09-11 08:23:22 +02:00
parent 1e90d7f077
commit 30d506af0f
2 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,8 @@
{{ if eq .MediaType.SubType "svg" }} {{ if eq .MediaType.SubType "svg" }}
src="{{ .RelPermalink }}" src="{{ .RelPermalink }}"
{{ else }} {{ else }}
width="{{ .Width }}"
height="{{ .Height }}"
{{ if lt .Width 660 }} {{ if lt .Width 660 }}
src="{{ .RelPermalink }}" src="{{ .RelPermalink }}"
{{ else }} {{ else }}

View File

@ -20,6 +20,8 @@
{{ if eq .MediaType.SubType "svg" }} {{ if eq .MediaType.SubType "svg" }}
src="{{ .RelPermalink }}" src="{{ .RelPermalink }}"
{{ else }} {{ else }}
width="{{ .Width }}"
height="{{ .Height }}"
{{ if lt .Width 660 }} {{ if lt .Width 660 }}
src="{{ .RelPermalink }}" src="{{ .RelPermalink }}"
{{ else }} {{ else }}