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

3 lines
230 B
HTML
Raw Normal View History

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