-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.html.j2
71 lines (56 loc) · 1.99 KB
/
template.html.j2
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
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ page.title }} | Gravis</title>
<meta name="description" content="{{ page.description }}">
<meta name="author" content="{{ page.author }}">
<link rel="stylesheet" href="assets/stylesheet.css">
</head>
<body>
<header>
<div class="main-navigation">
<nav class="categories">
<a href="/{{ page.base_dir }}/">Home</a> <a href="/{{ page.base_dir }}/journals.html">Journals and Conferences</a> <a href="/{{ page.base_dir }}/books.html">Book Chapters</a>
</nav>
</div>
<div class="sub-navigation">
<h3>► {{ page.header }}</h3>
<nav class="years">
{% for year in years %}
<span><a href="#journals-{{ year }}">[{{ year }}]</a></span>
{% endfor %}
</nav>
</div>
</header>
<main>
{% for year in years %}
<div class="year"><a name="journals-{{ year }}" class="anchor"></a>{{ year }}</div>
<div class="publications">
{% for publication in publications[year] %}
<article>
<div class="title">{{ publication.title }}
{% if publication.pdf_file is not in "" %}
<span><a href="/{{ page.base_dir }}/{{ publication.pdf_file }}" download>[pdf]</a></span>
{% endif %}
{% if publication.extra %}
{% if publication.extra.startswith('http') %}
<span><a href="{{ publication.extra }}">[more]</a></span>
{% else %}
<span><a href="/{{ page.base_dir }}/{{ publication.extra }}">[more]</a></span>
{% endif %}
{% endif %}
</div>
<div class="authors">{{ publication.authors }}</div>
<div class="publication">IN: {{ publication.publication }}</div>
{% if publication.doi_link is not in "" %}
<div class="doi"><a href="{{ publication.doi_link }}">DOI: {{ publication.doi_link }}</a></div>
{% endif %}
</article>
{% endfor %}
</div>
{% endfor %}
</main>
</body>
</html>