add list template
This commit is contained in:
parent
c67e110c7e
commit
bc5458daba
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
vendor/
|
vendor/
|
||||||
config.yml
|
config.yml
|
||||||
|
*.swp
|
||||||
|
12
templates/list.tmpl
Normal file
12
templates/list.tmpl
Normal 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" . }}
|
Loading…
Reference in New Issue
Block a user