{{- /* lazysizes and lightgallery.js */ -}} {{- $small := .src_s | default .src -}} {{- $large := .src_l | default .src -}} {{- $loading := resources.Get "svg/loading.svg" | minify -}} {{- if not .src | and .src_s -}} {{- $loading = resources.Get "svg/loading.small.svg" | minify -}} {{- end -}} {{- if .lightgallery -}} {{ .title | default .description }} {{- .scratch.Set "lightgallery" true -}} {{- else -}} {{ .title | default .description }} {{- end -}} {{- .scratch.Set "lazysizes" true -}}