summaryrefslogtreecommitdiff
path: root/themes/terminal/layouts/shortcodes/image.html
blob: 6b2a2c04642b7482223d0db01f58abca2215c79e (plain)
1
2
3
{{ 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 }} />
{{ end }}