Skip to content

Commit 3b6dc62

Browse files
authored
test 3
1 parent 0ac9b0c commit 3b6dc62

File tree

1 file changed

+33
-32
lines changed

1 file changed

+33
-32
lines changed

_includes/pub_entry.html

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,44 @@
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 %}
618
{% else %}
7-
{% assign url = "/papers/" | append: pub.pdf %}
19+
{% assign title = pub.title %}
820
{% 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 />
1331
{% endif %}
14-
<a href="{{ url | escape }}"> {{ pub.title }} </a>
32+
{{ month }}
1533
</span>
1634
{% 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 %}
3439

35-
{% capture authors %}
36-
{% include authors.html authors=pub.authors %}
37-
{% endcapture %}
3840

3941

40-
{% if pub.pub-type == "journal" %}
4142
<h2> Journal Papers </h2>
4243
<tr>
4344
<td>

0 commit comments

Comments
 (0)