<li class="gallery-photo"> <img src="{{ ( printf "img/thumbnails/%s" (.Get "fn")) | relURL }}" }} alt="{{ .Get "caption" }}"> </li>