homepage/_includes/publi_row.html
Gaspard Jankowiak 12c3ec4d62 improve layout
2020-04-09 08:33:49 +02:00

29 lines
1.2 KiB
HTML

{% assign pub = include.pub %}{% assign authors = include.authors %}{% assign sources = site.data.sources %}
<li value="{{pub.id}}">
<p class="left">
<strong>{{pub.title}}</strong>
<span class="right">
{% for a in pub.authors -%}
{% assign ca = authors[a] -%}
{% if ca.home -%}
<a href="{{ca.home)}}">{{ca.name}}</a>
{% else -%}
{{ca.name}}
{% endif -%}
{% if forloop.last -%}{% else -%}, {% endif -%}
{% endfor -%}
</span>
</p>
<p class="clear">
{% if pub.journal %}<em>{{pub.journal}}</em>{% if pub.issue %} | {{pub.issue.year}} Vol. {{pub.issue.volume}} ({{pub.issue.number}}): {{pub.issue.pages}}{% else %} | {% if page.lang == "en" %}in press{% else %}à paraître{% endif %}{% endif -%}{% else %}{% if page.lang == "en" %}submitted{% else %}soumis{% endif %}{% endif %}
<span class="right">
{% for link in pub.links %}
{% for l in link %}{% assign k = l[0] %}
<span class="paper_link"><a href="{{ sources[k].baseurl}}{{l[1]}}">{{ sources[k].name }}</a></span>
{% endfor %}
{% if forloop.last -%}{% else -%}&middot;{% endif -%}
{% endfor %}
</span>
</p>
<p class="clear"></p>
</li>