diff options
author | Jordan <me@jordan.im> | 2021-03-04 21:48:18 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2021-03-04 21:48:18 -0700 |
commit | a164fd4aad6406900de2bc443e31e580b46550fc (patch) | |
tree | bd317d7daaa493de9d9c609cd2895d62c65eab68 /templates/index.html | |
parent | d70a3b022e59dfc484d350335ca25eb02998b8eb (diff) | |
download | crane-a164fd4aad6406900de2bc443e31e580b46550fc.tar.gz crane-a164fd4aad6406900de2bc443e31e580b46550fc.zip |
add category links, styling
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 5 |
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 }} |