aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2021-03-04 21:48:18 -0700
committerJordan <me@jordan.im>2021-03-04 21:48:18 -0700
commita164fd4aad6406900de2bc443e31e580b46550fc (patch)
treebd317d7daaa493de9d9c609cd2895d62c65eab68 /templates/index.html
parentd70a3b022e59dfc484d350335ca25eb02998b8eb (diff)
downloadcrane-a164fd4aad6406900de2bc443e31e580b46550fc.tar.gz
crane-a164fd4aad6406900de2bc443e31e580b46550fc.zip
add category links, styling
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html
index 7de21f7..30023cd 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -4,10 +4,13 @@
</table>
{{ $categoryCount := len .Papers }}
{{ if gt $categoryCount 0 }}
+<div class="cat">
+ <span>{{ range $category, $paper := .Papers }}[<a href="#{{ $category }}">{{ $category }}</a>] {{ end }}</span>
+</div>
<table class='tabs'>
<td><a class='active' href='/admin/'>Manage</a></td>
</table>
-<div class='content'>
+<div class="content">
{{ block "list" . }}{{ end }}
</div>
{{ else }}