lumbung-theme/layouts/_default/_markdown/render-image.html
2021-07-08 10:42:38 +02:00

3 lines
230 B
HTML

{{- $image := .Page.Resources.GetMatch (printf "%s" (.Destination | safeURL)) -}}
<img width = "{{- $image.Width -}}" height = "{{- $image.Height -}}" alt = "{{- .PlainText | htmlUnescape -}}" src = "{{- $image.RelPermalink -}}">