aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorAnirudh Oppiliappan <x@icyphox.sh>2022-12-12 21:33:09 +0530
committerAnirudh Oppiliappan <x@icyphox.sh>2022-12-12 21:33:09 +0530
commit01f27147baf80e2222927ddca9369c7d99b4ff3c (patch)
treeffd8f1431f83ae4f1b390c907ee45c377c84f436 /templates/index.html
parentroutes: render readme (diff)
downloadlegitrx-01f27147baf80e2222927ddca9369c7d99b4ff3c.tar.gz
legitrx-01f27147baf80e2222927ddca9369c7d99b4ff3c.tar.zst
legitrx-01f27147baf80e2222927ddca9369c7d99b4ff3c.zip
routes: index view
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..91f18b7
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,27 @@
+{{ define "index" }}
+<html>
+{{ template "head" . }}
+
+ <header>
+ <h1>{{ .meta.Title }}</h1>
+ <h2>{{ .meta.Description }}</h2>
+ </header>
+ <body>
+ {{ template "nav" . }}
+ <main>
+ <table>
+ <tr>
+ <td>repository</td>
+ <td>last active</td>
+ </tr>
+ {{ range $repo, $lc := .info }}
+ <tr>
+ <td><a href="/{{ $repo }}">{{ $repo }}</a></td>
+ <td>{{ $lc }}</td>
+ </tr>
+ {{ end }}
+ </table>
+ </main>
+ </body>
+</html>
+{{ end }}