mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-28 14:41:23 +00:00
17 lines
372 B
HTML
17 lines
372 B
HTML
|
<table style="width=100%">
|
||
|
<th>Size in bytes</th>
|
||
|
<th>Name</th>
|
||
|
{{$dir := .Get "dir"}}
|
||
|
{{ $url := .Get "baseurl" }}
|
||
|
|
||
|
{{ $files := ReadDir $dir }}
|
||
|
{{ range $files }}
|
||
|
<tr>
|
||
|
<td>{{.Size}}</td>
|
||
|
<td>
|
||
|
<a href="{{$url}}{{.Name | urlize }}"> {{.Name}}</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
{{ end }}
|
||
|
</table>
|