homepage/_includes/publi_row.html
2022-01-28 10:08:58 +01:00

36 lines
1.7 KiB
HTML

{% assign pub = include.pub %}{% assign authors = include.authors %}{% assign sources = site.data.sources %}{% assign journals = site.data.journals %}
<li value="{{pub.id}}">
<p class="left">
{% 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 -%}
<br>
<strong>{{pub.title}}</strong>
</p>
<span class="right">
</span>
<p class="clear">
{% if pub.journal %}
{% if journals[pub.journal] %}
{% assign j = journals[pub.journal] %}
<a href="{{ j.url }}" title="{{ j.long }}"><em>{{ j.short }}</em></a>
{% else %}
<em>{{pub.journal}}</em>
{% endif %}
{% if pub.issue %} | {{pub.issue.year}}{% if pub.issue.volume %} Vol. {{pub.issue.volume}} {% endif %}{% if pub.issue.number %}({{pub.issue.number}}){% endif %} : {% if pub.doi %}<a href="{{ sources.doi.baseurl}}{{ pub.doi }}">{{pub.issue.pages}}</a>{% else %}{{ pub.issue.pages}}{% endif %}{% 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 %}
{% assign k = link[0] %}
<span class="paper_link"><a title="{{ sources[k].baseurl}}{{link[1]}}" href="{{ sources[k].baseurl}}{{link[1]}}">{{ sources[k].name }}</a></span>
{% if forloop.last -%}{% else -%}&middot;{% endif -%}
{% endfor %}
</span>
</p>
<p class="clear"></p>
</li>