{{- /* lightgallery */ -}} {{- $src := .Src -}} {{- $width := .Width -}} {{- $height := .Height -}} {{- with dict "Path" $src "Resources" .Resources | partial "function/resource.html" -}} {{- $src = .RelPermalink -}} {{- /* Resources can not get width and height of image for svg type */ -}} {{- if (not $width) | and (not $height) | and (ne .MediaType.SubType "svg") -}} {{- $width = .Width -}} {{- $height = .Height -}} {{- end -}} {{- end -}} {{- $small := .SrcSmall | default $src -}} {{- with dict "Path" .SrcSmall "Resources" .Resources | partial "function/resource.html" -}} {{- $small = .RelPermalink -}} {{- end -}} {{- $large := .SrcLarge | default $src -}} {{- with dict "Path" .SrcLarge "Resources" .Resources | partial "function/resource.html" -}} {{- $large = .RelPermalink -}} {{- end -}} {{- $alt := .Alt | default $src -}} {{- $caption := .Caption | default $alt -}} {{- $loading := .Loading | default "lazy" -}} {{- if .Linked -}} {{- end -}} {{ $alt }} {{- if .Linked -}} {{- end -}}