blob: b9f7fd234f44a0cd08b0a16cac81d81d55e86dae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{{ define "list" }}
<div>
{{ range $category, $papers := .Papers.List }}
{{ $paperCount := len $papers }}
{{ if ge $paperCount 1 }}
<h2 id="{{ $category }}">
<a class="permalink" href="#{{ $category }}">{{ $category }}</a>
</h2>
{{ range $path, $paper := $papers }}
<div class="paper">
{{ if $paper.Meta.Title }}
<span class="title">
<a href='/download/{{ $path }}' title='{{ $paper.Meta.Title }}'>{{ $paper.Meta.Title }}</a>
</span>
<br />
{{ else }}
<span class="title">
<a href='/download/{{ $path }}' title='{{ $paper.PaperName }}'>{{ $paper.PaperName }}</a>
</span>
<br />
{{ end }}
{{ $contCount := len $paper.Meta.Contributors }}
{{ if ge $contCount 1 }}
<span class="authors">
{{- range $index, $contributor := $paper.Meta.Contributors -}}
{{- if $index }}, {{ end -}}
{{- $contributor.FirstName }} {{ $contributor.LastName -}}
{{- end -}}
</span>
<br />
{{ end }}
{{ $hasVal := false }}
{{ if $paper.Meta.PubYear }}
{{ $hasVal = true }}
<span class="year">{{ $paper.Meta.PubYear }}</span>
{{ end }}
{{ if $paper.Meta.DOI }}
{{ if $hasVal }}- {{end}}
<span class="doi">
<a href="https://doi.org/{{ $paper.Meta.DOI }}">{{ $paper.Meta.DOI }}</a>
</span>
{{ else if $paper.Meta.ArxivID }}
{{ if $hasVal }}- {{ end }}
<span class="doi">
<a href="https://arxiv.org/abs/{{ $paper.Meta.ArxivID }}">{{ $paper.Meta.ArxivID }}</a>
</span>
{{ else if $paper.Meta.Resource }}
{{ if $hasVal }}- {{ end }}
<span class="doi">
<a href="{{ $paper.Meta.Resource }}">{{ $paper.Meta.Resource }}</a>
</span>
{{ end }}
{{ if $paper.Meta.Journal }}
{{ if $hasVal }}- {{ end }}
<span class="journal">{{ $paper.Meta.Journal }}</span>
{{ end }}
</div>
{{ end }}
{{ end }}
{{ end }}
</div>
{{ end }}
|