{{ $url := .Get 0 }} {{ with .Page.Params.downloads }} <table class="downloads"> <tbody> {{ range . }} {{ $filename := index (split .url "/") (sub (len (split .url "/")) 1) }} {{ $target := .target }} <tr> <th>{{ .target }}</th> <td> <a href="{{ $url }}{{ .url }}">{{ $filename }}</a> </td> </tr> {{ end }} </tbody> </table> {{ end }}