summaryrefslogtreecommitdiffstats
path: root/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/index.html35
1 files changed, 20 insertions, 15 deletions
diff --git a/templates/index.html b/templates/index.html
index 80c9e1d..a820dec 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -2,20 +2,25 @@
<html>
{{ template "head" . }}
- <header>
- <h1>{{ .meta.Title }}</h1>
- <h2>{{ .meta.Description }}</h2>
- </header>
- <body>
- <main>
- <div class="index">
- {{ range .info }}
- <div class="index-name"><a href="/{{ .Name }}">{{ .Name }}</a></div>
- <div class="desc">{{ .Desc }}</div>
- <div>{{ .Idle }}</div>
+<header>
+ <h1>{{ .meta.Title }}</h1>
+ <h2>{{ .meta.Description }}</h2>
+</header>
+
+<body>
+ <main>
+ {{ range $key, $value := .categories }}
+ <div class="index-category">{{ $key }}</div>
+ <div class="index">
+ {{ range $value }}
+ <div class="index-name"><a href="/{{ .Path }}">{{ .Name }}</a></div>
+ <div class="desc">{{ .Desc }}</div>
+ <div>{{ .Idle }}</div>
{{ end }}
- </div>
- </main>
- </body>
+ </div>
+ {{ end }}
+ </main>
+</body>
+
</html>
-{{ end }}
+{{ end }} \ No newline at end of file