{{- /* lightgallery.js */ -}}
{{- $src := .Src -}}
{{- $height := "" -}}
{{- $width := "" -}}
{{- $suffixList := slice ".jpeg" ".jpg" ".png" ".gif" ".bmp" ".tif" ".tiff" ".webp" -}}
{{- with dict "Path" .Src "Resources" .Resources | partial "function/resource.html" -}}
{{- $src = .RelPermalink -}}
{{- if and
(eq .ResourceType "image")
(dict "Path" $src "Suffixes" $suffixList | partial "function/suffixValidation.html")
-}}
{{- $height = .Height -}}
{{- $width = .Width -}}
{{- 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 .Title | default $src -}}
{{- $loading := .Loading | default "lazy" -}}
{{- with .Height -}}
{{- $height = . -}}
{{- end -}}
{{- with .Width -}}
{{- $width = . -}}
{{- end -}}
{{- if .Linked -}}
{{- else -}}
{{- end -}}