resources.ByType
Syntax
resources.ByType MEDIATYPE
Returns
resource.Resources
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 }}