|
1 | | -{% assign pub = include.pub %} |
2 | | - |
3 | | -{% if pub.pdf %} |
4 | | - {% if pub.pdf contains "http" %} |
5 | | - {% assign url = pub.pdf %} |
| 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 %} |
6 | 18 | {% else %} |
7 | | - {% assign url = "/papers/" | append: pub.pdf %} |
| 19 | + {% assign title = pub.title %} |
8 | 20 | {% endif %} |
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" /> |
| 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 /> |
13 | 31 | {% endif %} |
14 | | - <a href="{{ url | escape }}"> {{ pub.title }} </a> |
| 32 | + {{ month }} |
15 | 33 | </span> |
16 | 34 | {% endcapture %} |
17 | | -{% else %} |
18 | | - {% assign title = pub.title %} |
19 | | -{% endif %} |
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 %} |
| 35 | + |
| 36 | + {% capture authors %} |
| 37 | + {% include authors.html authors=pub.authors %} |
| 38 | + {% endcapture %} |
34 | 39 |
|
35 | | -{% capture authors %} |
36 | | - {% include authors.html authors=pub.authors %} |
37 | | -{% endcapture %} |
38 | 40 |
|
39 | 41 |
|
40 | | -{% if pub.pub-type == "journal" %} |
41 | 42 | <h2> Journal Papers </h2> |
42 | 43 | <tr> |
43 | 44 | <td> |
|
0 commit comments