homepage/_includes/publi_row.html

29 lines
1,006 B
HTML
Raw Normal View History

2014-04-15 15:06:31 +02:00
{% assign pub = include.pub %}{% assign authors = include.authors %}{% assign sources = site.data.sources %}
<li value="{{pub.id}}">
2014-04-10 09:57:08 +02:00
<p class="left">
<strong>{{pub.title}}</strong>
<span class="right">
2014-04-15 15:06:31 +02:00
{% for a in pub.authors -%}
{% assign ca = authors[a] -%}
{% if ca.home -%}
2014-04-10 09:57:08 +02:00
<a href="{{ca.home)}}">{{ca.name}}</a>
2014-04-15 15:06:31 +02:00
{% else -%}
2014-04-10 09:57:08 +02:00
{{ca.name}}
2014-04-15 15:06:31 +02:00
{% endif -%}
{% if forloop.last -%}{% else -%},{% endif -%}
{% endfor -%}
2014-04-10 09:57:08 +02:00
</span>
</p>
<p class="clear">
{% if pub.journal %}<em>{{pub.journal}}</em> {{pub.issue}}{% else %} <em>preprint</em> {% endif %}
<span class="right">
2014-04-15 15:06:31 +02:00
{% 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 %}
2014-04-10 09:57:08 +02:00
</span>
</p>
</li>