Skip to content

Commit 0c70528

Browse files
authored
Update pub_entry.html
1 parent 3b6dc62 commit 0c70528

File tree

1 file changed

+30
-63
lines changed

1 file changed

+30
-63
lines changed

_includes/pub_entry.html

Lines changed: 30 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,42 @@
1-
{% if pub.pub-type == "journal" %}
2-
{% assign pub = include.pub %}
3-
4-
{% if pub.pdf %}
5-
{% if pub.pdf contains "http" %}
6-
{% assign url = pub.pdf %}
7-
{% else %}
8-
{% assign url = "/papers/" | append: pub.pdf %}
9-
{% endif %}
10-
{% capture title %}
11-
<span class="pubtitle">
12-
{% if url contains "pdf" %}
13-
<img src={{ "img/pdficon_small.png" | relative_url }} width="20" height="20" alt="PDF" />
14-
{% endif %}
15-
<a href="{{ url | escape }}"> {{ pub.title }} </a>
16-
</span>
17-
{% endcapture %}
1+
{% assign pub = include.pub %}
2+
3+
{% if pub.pdf %}
4+
{% if pub.pdf contains "http" %}
5+
{% assign url = pub.pdf %}
186
{% else %}
19-
{% assign title = pub.title %}
7+
{% assign url = "/papers/" | append: pub.pdf %}
208
{% endif %}
21-
22-
{% assign year = pub.date | date: "%Y" %}
23-
{% assign year = year | to_integer %}
24-
{% assign month = pub.date | date: "%B" %}
25-
{% capture date %}
26-
<span class="date">
27-
{% if year != include.prev_year %}
28-
<big><strong>{{ year }}</strong></big><br />
29-
{% else %}
30-
<br />
9+
{% capture title %}
10+
<span class="pubtitle">
11+
{% if url contains "pdf" %}
12+
<img src={{ "img/pdficon_small.png" | relative_url }} width="20" height="20" alt="PDF" />
3113
{% endif %}
32-
{{ month }}
14+
<a href="{{ url | escape }}"> {{ pub.title }} </a>
3315
</span>
3416
{% endcapture %}
35-
36-
{% capture authors %}
37-
{% include authors.html authors=pub.authors %}
38-
{% endcapture %}
17+
{% else %}
18+
{% assign title = pub.title %}
19+
{% endif %}
3920

21+
{% assign year = pub.date | date: "%Y" %}
22+
{% assign year = year | to_integer %}
23+
{% assign month = pub.date | date: "%B" %}
24+
{% capture date %}
25+
<span class="date">
26+
{% if year != include.prev_year %}
27+
<big><strong>{{ year }}</strong></big><br />
28+
{% else %}
29+
<br />
30+
{% endif %}
31+
{{ month }}
32+
</span>
33+
{% endcapture %}
4034

35+
{% capture authors %}
36+
{% include authors.html authors=pub.authors %}
37+
{% endcapture %}
4138

42-
<h2> Journal Papers </h2>
43-
<tr>
44-
<td>
45-
{{ date }}
46-
</td>
47-
<td class="publication">
48-
<span class="pubtitle">
49-
{{ title }}
50-
</span><br />
51-
<span class="authors">
52-
{{ authors }}
53-
</span><br />
54-
<span class="publisher">
55-
{% if pub.abbrv %}
56-
{{ pub.publisher | strip }} ({{ pub.abbrv | strip }}).
57-
{% else %}
58-
{{ pub.publisher | strip }}
59-
{% endif %}
60-
</span>
61-
{% if pub.status %}
62-
<span class="status">
63-
({{ pub.status | strip }})
64-
</span>
65-
{% endif %}
66-
</td>
67-
</tr>
68-
{% endif %}
6939

70-
<!-- <h2> Conference Papers</h2>
71-
{% if pub.pub-type == "conference" %}
7240
<tr>
7341
<td>
7442
{{ date }}
@@ -99,4 +67,3 @@ <h2> Journal Papers </h2>
9967
{% endif %}
10068
</td>
10169
</tr>
102-
{% endif %} -->

0 commit comments

Comments
 (0)