From bc5458daba96e3a1207a9ae615fda734bf95734e Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 26 Feb 2019 17:43:18 +0800 Subject: [PATCH] add list template --- .gitignore | 1 + templates/list.tmpl | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 templates/list.tmpl diff --git a/.gitignore b/.gitignore index 32d9266..ace3229 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ vendor/ config.yml +*.swp diff --git a/templates/list.tmpl b/templates/list.tmpl new file mode 100644 index 0000000..5dc5bdb --- /dev/null +++ b/templates/list.tmpl @@ -0,0 +1,12 @@ +{{ template "head.tmpl" . }} + +

Index Of {{ .path }}

+
+ +
+{{ range .list }}
+{{ .Name }}
+{{ end }}
+
+ +{{ template "foot.tmpl" . }}