From baa10aeb413a5ac109e56db5fd7a8d62a4d5965f Mon Sep 17 00:00:00 2001 From: Jordan Date: Tue, 16 Feb 2021 16:48:56 -0700 Subject: initial commit --- templates/list.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 templates/list.html (limited to 'templates/list.html') diff --git a/templates/list.html b/templates/list.html new file mode 100644 index 0000000..718a732 --- /dev/null +++ b/templates/list.html @@ -0,0 +1,29 @@ +{{ define "list" }} + +{{ range $category, $papers := .Papers }} + {{ $paperCount := len $papers }} + {{ if ge $paperCount 1 }} + + + + {{ range $path, $paper := $papers }} + + {{ if $paper.Meta.Title }} + + {{ else }} + + {{ end }} + + + {{ if $paper.Meta.Title }} + + {{ else }} + + {{ end }} + + {{ end }} + {{ else }} + {{ end }} +{{ end }} +
{{ $category }}
{{ $paper.Meta.Title }}{{ $paper.PaperName }}
author: {{ $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 }} yr: {{ $paper.Meta.PubYear }} doi: {{ $paper.Meta.DOI }} journal: {{ $paper.Meta.Journal }}
+{{ end }} -- cgit v1.2.3-54-g00ecf