diff options
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/templates/index.html b/templates/index.html index d435a38..861410d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,21 +1,22 @@ {{ template "layout.html" . }} {{ define "content" }} -<table id='header'> -</table> + +<div class="content"> {{ $categoryCount := len .Papers.List }} {{ if gt $categoryCount 0 }} -<div class="cat"> - <span>{{ range $category, $paper := .Papers.List }}<span class="nowrap">[<a href="#{{ $category }}">{{ $category }}</a>]</span> {{ end }}</span> +<div class="cat-cont"> + <div class="cat"> + {{ range $category, $paper := .Papers.List }} + <span class="cat">[<a href="#{{ $category }}">{{ $category }}</a>]</span> + {{ end }} + </div> </div> -<table class='tabs'> - <tr> - <td><a class='active' href='/admin/'>Manage</a></td> - </tr> -</table> -<div class="content"> +<p class="Pp"><a class='active' href='/admin/'>Manage</a></p> {{ block "list" . }}{{ end }} </div> {{ else }} -<p>nothing here yet, <a style="text-decoration:underline;" href="/admin/">create a category</a> to start downloading papers</p> +<p>nothing here yet, +<a style="text-decoration:underline;" href="/admin/">create a category</a> +to start downloading papers</p> {{ end }} {{ end }} |