aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html
index 30023cd..6397671 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -2,10 +2,10 @@
{{ define "content" }}
<table id='header'>
</table>
-{{ $categoryCount := len .Papers }}
+{{ $categoryCount := len .Papers.List }}
{{ if gt $categoryCount 0 }}
<div class="cat">
- <span>{{ range $category, $paper := .Papers }}[<a href="#{{ $category }}">{{ $category }}</a>] {{ end }}</span>
+ <span>{{ range $category, $paper := .Papers.List }}[<a href="#{{ $category }}">{{ $category }}</a>] {{ end }}</span>
</div>
<table class='tabs'>
<td><a class='active' href='/admin/'>Manage</a></td>