From 01f27147baf80e2222927ddca9369c7d99b4ff3c Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Mon, 12 Dec 2022 21:33:09 +0530 Subject: routes: index view --- templates/500.html | 2 +- templates/index.html | 27 +++++++++++++++++++++++++++ templates/nav.html | 4 ++++ templates/repo.html | 2 +- 4 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 templates/index.html (limited to 'templates') diff --git a/templates/500.html b/templates/500.html index 5495d31..72e784c 100644 --- a/templates/500.html +++ b/templates/500.html @@ -1,7 +1,7 @@ {{ define "500" }} 500 -{{ template "header" . }} +{{ template "head" . }} 500 — something broke! 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" }} + +{{ template "head" . }} + +
+

{{ .meta.Title }}

+

{{ .meta.Description }}

+
+ + {{ template "nav" . }} +
+ + + + + + {{ range $repo, $lc := .info }} + + + + + {{ end }} +
repositorylast active
{{ $repo }}{{ $lc }}
+
+ + +{{ end }} diff --git a/templates/nav.html b/templates/nav.html index 20dca50..a8fa84a 100644 --- a/templates/nav.html +++ b/templates/nav.html @@ -2,9 +2,13 @@ {{ end }} diff --git a/templates/repo.html b/templates/repo.html index a033f0d..ddc3f01 100644 --- a/templates/repo.html +++ b/templates/repo.html @@ -37,7 +37,7 @@ {{ if $parent }} {{ .Name }}/ {{ else }} - {{ .Name }}/ + {{ .Name }}/ {{ end }} -- cgit