{{- /* Markdown images inside a page bundle get resized and lazy-loaded. External or non-resource images are passed through unchanged. */ -}} {{- $src := .Destination -}} {{- $alt := .Text | plainify -}} {{- $caption := .Title -}} {{- with .Page.Resources.GetMatch $src -}} {{- $img := . -}} {{- if gt .Width 1200 -}}{{- $img = .Resize "1200x webp q82" -}}{{- end -}}
{{ $alt }} {{- with $caption }}
{{ . }}
{{ end -}}
{{- else -}} {{ $alt }} {{- end -}}