From 3c1b8007b6d5992e6bffc701ad06e0adec717145 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Mon, 19 Feb 2024 22:23:39 +0000 Subject: support categories at index --- templates/index.html | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) (limited to 'templates/index.html') 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 @@ {{ template "head" . }} -
-

{{ .meta.Title }}

-

{{ .meta.Description }}

-
- -
-
- {{ range .info }} - -
{{ .Desc }}
-
{{ .Idle }}
+
+

{{ .meta.Title }}

+

{{ .meta.Description }}

+
+ + +
+ {{ range $key, $value := .categories }} +
{{ $key }}
+
+ {{ range $value }} + +
{{ .Desc }}
+
{{ .Idle }}
{{ end }} -
-
- +
+ {{ end }} +
+ + -{{ end }} +{{ end }} \ No newline at end of file -- cgit