diff --git a/layouts/shortcodes/listfiles.html b/layouts/shortcodes/listfiles.html new file mode 100644 index 0000000..97efdbe --- /dev/null +++ b/layouts/shortcodes/listfiles.html @@ -0,0 +1,12 @@ +{{ $path := .Get "path" }}{{ $files := readDir $path }} +
+ {{ range sort $files ".Name" "asc" }} + {{ if not .IsDir }} + {{ if ne .Name "index.md" }} +
+ {{ .Name }} +
+ {{ end }} + {{ end }} + {{ end }} +