|
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 %} |
18 | 6 | {% else %} |
19 | | - {% assign title = pub.title %} |
| 7 | + {% assign url = "/papers/" | append: pub.pdf %} |
20 | 8 | {% 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" /> |
31 | 13 | {% endif %} |
32 | | - {{ month }} |
| 14 | + <a href="{{ url | escape }}"> {{ pub.title }} </a> |
33 | 15 | </span> |
34 | 16 | {% endcapture %} |
35 | | - |
36 | | - {% capture authors %} |
37 | | - {% include authors.html authors=pub.authors %} |
38 | | - {% endcapture %} |
| 17 | +{% else %} |
| 18 | + {% assign title = pub.title %} |
| 19 | +{% endif %} |
39 | 20 |
|
| 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 %} |
40 | 34 |
|
| 35 | +{% capture authors %} |
| 36 | + {% include authors.html authors=pub.authors %} |
| 37 | +{% endcapture %} |
41 | 38 |
|
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 %} |
69 | 39 |
|
70 | | -<!-- <h2> Conference Papers</h2> |
71 | | -{% if pub.pub-type == "conference" %} |
72 | 40 | <tr> |
73 | 41 | <td> |
74 | 42 | {{ date }} |
@@ -99,4 +67,3 @@ <h2> Journal Papers </h2> |
99 | 67 | {% endif %} |
100 | 68 | </td> |
101 | 69 | </tr> |
102 | | -{% endif %} --> |
0 commit comments