{{ $name := .Get 0 }}
{{ $alt := .Get 1 }}

{{ $path := printf "pics/%s" $name}}

{{ with resources.Get $path }}
<img alt="{{ $alt }}" class="gallery-img page-pic" width="{{ .Width }}" height="{{ .Height }}" src="{{ .RelPermalink }}">
{{ end }}
