From a164fd4aad6406900de2bc443e31e580b46550fc Mon Sep 17 00:00:00 2001 From: Jordan Date: Thu, 4 Mar 2021 21:48:18 -0700 Subject: add category links, styling --- templates/list.html | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) (limited to 'templates/list.html') diff --git a/templates/list.html b/templates/list.html index 1a482d1..8f6382d 100644 --- a/templates/list.html +++ b/templates/list.html @@ -1,29 +1,26 @@ {{ define "list" }} - +
{{ range $category, $papers := .Papers }} {{ $paperCount := len $papers }} {{ if ge $paperCount 1 }} -
- - +
+ {{ $category }} +
{{ range $path, $paper := $papers }} - +
{{ if $paper.Meta.Title }} -
+ {{ $paper.Meta.Title }}
{{ else }} - + {{ $paper.PaperName }}
{{ end }} - - + {{ if $paper.Meta.Title }} - - {{ else }} - + {{ range $index, $contributor := $paper.Meta.Contributors }}{{if $index}}, {{end}}{{ $contributor.FirstName }} {{ $contributor.LastName }}{{end}}
+ {{ $paper.Meta.PubYear }} - {{ $paper.Meta.DOI }} - {{ $paper.Meta.Journal }} {{ end }} - + {{ end }} - {{ else }} {{ end }} {{ end }} -
{{ $category }}
{{ $paper.Meta.Title }}{{ $paper.PaperName }}
{{ $paper.Meta.PubYear }} - {{ $contCount := len $paper.Meta.Contributors }} {{ if gt $contCount 0 }}{{ $author := index $paper.Meta.Contributors 0 }}{{ $author.LastName }}{{ if gt $contCount 1 }} et al.{{ end }}{{ end }} - {{ $paper.Meta.DOI }} - {{ $paper.Meta.Journal }}
+ {{ end }} -- cgit v1.2.3-54-g00ecf