Initial commit
This commit is contained in:
parent
29c198826a
commit
ba13221167
26 changed files with 181 additions and 14 deletions
7
layouts/shortcodes/ReadDirectory.html
Normal file
7
layouts/shortcodes/ReadDirectory.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<!-- layouts/shortcodes/ReadDirectory.html -->
|
||||
|
||||
{{ $dir := .Get "dir" }}
|
||||
|
||||
{{ range sort (readDir (delimit (slice "static" $dir) "/")) "Name" }}
|
||||
<a href="/{{ $dir }}/{{ .Name }}">{{ .Name }}</a><br>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue