Welcome to mirror list, hosted at ThFree Co, Russian Federation.

directoryindex.html « shortcodes « layouts « docs - github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 37e7d3ad116bb0ba3a977c0fc78bfa9d1f263cff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{{- $pathURL := .Get "pathURL" -}}
{{- $path := .Get "path" -}}
{{- $files := readDir $path -}}
<table>
    <th>Size in bytes</th>
    <th>Name</th>
{{- range $files }}
    <tr>
        <td>{{ .Size }}</td>
        <td><a href="{{ $pathURL }}{{ .Name | relURL }}" target="_blank"> {{ .Name }}</a></td>
    </tr>
{{- end }}
</table>