add list template

This commit is contained in:
Jay
2019-02-26 17:43:18 +08:00
parent c67e110c7e
commit bc5458daba
2 changed files with 13 additions and 0 deletions
+1
View File
@@ -1,2 +1,3 @@
vendor/
config.yml
*.swp
+12
View File
@@ -0,0 +1,12 @@
{{ template "head.tmpl" . }}
<h3>Index Of {{ .path }}</h3>
<hr />
<pre>
{{ range .list }}
<a href="/v{{ parsePath $.path }}/{{ .Name }}">{{ .Name }}</a>
{{ end }}
</pre>
{{ template "foot.tmpl" . }}