lumbung.space/lumbung-theme/layouts/_default/_markdown/render-image.html

3 lines
230 B
HTML
Raw Normal View History

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