diff --git a/layouts/shortcodes/directoryindex.html b/layouts/shortcodes/directoryindex.html new file mode 100644 index 0000000..a1c9b7e --- /dev/null +++ b/layouts/shortcodes/directoryindex.html @@ -0,0 +1,13 @@ +{{- $pathURL := .Get "pathURL" -}} +{{- $path := .Get "path" -}} +{{- $files := readDir $path -}} +
文件大小(字节) | +文件名称 | +{{- range $files }} +
---|---|
{{ .Size }} | +{{ .Name }} | +