why $.Resource and .Resources not same? Is it a bug or design behavior?
Hugo version : v0.136.1
{{ $related := first $params.related.count (where (where $.Site.Pages ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
{{ with $related }}
{{ range . }}
{{- $resource := .Resources -}}
{{- with "aaa" -}}
{{- fmt.Warnf "related $.Resource is %v +====== before .Resources is %v " $.Resources $resource -}}
{{- end -}}
{{ end }}
{{ end }}
output:
WARN related $.Resource is [featuredImage.webp] +====== before .Resources is [restarting-life-og.webp restarting-life.webp]
WARN related $.Resource is [featuredImage.webp] +====== before .Resources is []
WARN related $.Resource is [featuredImage.webp] +====== before .Resources is [thumbnail.jpg]
WARN related $.Resource is [featuredImage.webp] +====== before .Resources is [cloud-history.png cncf-accepted-12-new-project-2019.png crossing-the-chasm.webp gartner-2024-hype-cycle-emerging-technologies.png group-noactivities.png growth-in-china-2019.png kubecon-eu-sponsorship-status.png kubernetes-china-contributors-countries-stats.png kubernetes-comments-countries-stats.png kubernetes-commits-countries.png kubernetes-committers-countries.png kubernetes-contributor-status.jpg kubernetes-contributors-countries-stats.png kubernetes-google-trends.png kubernetes-issue-creatos-countries-stats.png nvidia-goc-2024.webp nvidia-gtc-2024.jpg practitioner-nim-1920x1080.png project-maturity-levels.webp sponsorship-history-status.jpg]