diff options
author | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-11 11:22:47 +0530 |
---|---|---|
committer | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-11 11:22:47 +0530 |
commit | 856f66808b913baff13c815daec3cdde7121e3bd (patch) | |
tree | 60feca35e702d20a0ec8da208b6b59926470bf31 /templates/repo.html | |
download | legit-856f66808b913baff13c815daec3cdde7121e3bd.tar.gz legit-856f66808b913baff13c815daec3cdde7121e3bd.tar.bz2 legit-856f66808b913baff13c815daec3cdde7121e3bd.zip |
all: init
Diffstat (limited to '')
-rw-r--r-- | templates/repo.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/repo.html b/templates/repo.html new file mode 100644 index 0000000..e388de3 --- /dev/null +++ b/templates/repo.html @@ -0,0 +1,22 @@ +{{ define "repo" }} +<html> +{{ template "head" . }} + + <header> + <h1>{{ .meta.Title }}</h1> + <h2>{{ .meta.Description }}</h2> + </header> + <body> + {{ template "nav" . }} + <main> + {{ range .files }} + {{ if .IsFile }} + <p>{{ .Mode }} {{ .Name }} {{ .Size }} </p> + {{ else }} + <p>d-------- {{ .Name}}/</p> + {{ end }} + {{ end }} + </main> + </body> +</html> +{{ end }} |