🔀 Merge pull request #645 from stereobooster/provide-width-height

Provide width and height for images
This commit is contained in:
James Panther
2023-09-12 09:46:58 +10:00
committed by GitHub
4 changed files with 8 additions and 0 deletions
@@ -28,6 +28,8 @@
{{ if eq .MediaType.SubType "svg" }}
src="{{ .RelPermalink }}"
{{ else }}
width="{{ .Width }}"
height="{{ .Height }}"
{{ if lt .Width 660 }}
src="{{ .RelPermalink }}"
{{ else }}
+2
View File
@@ -20,6 +20,8 @@
{{ if eq .MediaType.SubType "svg" }}
src="{{ .RelPermalink }}"
{{ else }}
width="{{ .Width }}"
height="{{ .Height }}"
{{ if lt .Width 660 }}
src="{{ .RelPermalink }}"
{{ else }}