mirror of
https://github.com/panr/hugo-theme-terminal.git
synced 2024-11-28 14:38:45 +03:00
5aac274434
- Add both width and height attributes
3 lines
380 B
HTML
3 lines
380 B
HTML
{{ if .Get "src" }}
|
|
<img src="{{ .Get "src" | safeURL }}" {{ with .Get "alt" }} alt="{{ . | plainify }}" {{ end }} class="{{ with .Get "position"}}{{ . }}{{ else -}} left {{- end }}" {{ with .Get "style" }} style="{{ . | safeCSS }}" {{ end }} {{ with .Get "width" }} width="{{ . | plainify }}" {{ end }} {{ with .Get "height" }} height="{{ . | plainify }}" {{ end }} />
|
|
{{ end }}
|