resources.ByType

resources.ByType


Returns a collection of global resources of the given media type, or nil if none found.

The [media type] is typically one of image, text, audio, video, or application.

{{ range resources.ByType "image" }}
  <img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt="">
{{ end }}