{{ 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 }}">{{ $filename }}</a>
          </td>
        </tr>
      {{ end }}
    </tbody>
  </table>
{{ end }}
