homepage/_includes/publi_row.html
2017-02-06 14:19:46 +01:00

28 lines
1.1 KiB
HTML

{% assign pub = include.pub %}{% assign authors = include.authors %}{% assign sources = site.data.sources %}
<li>
<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 %} | Vol. {{pub.issue.volume}} ({{pub.issue.year}}), no. {{pub.issue.number}}{% endif -%}{% else %} <em>preprint, soumis/submitted</em> {% 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>
</li>