ref: fed5f20f89d32504bfe2dbe9ee30b72a30a2ba8b
dir: /docs/layouts/shortcodes/fileindex.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>