Fixes bug when generating publications from single authors. (#27)
* Fixes bug when generating publications from single authors. * Fixes generation of author string for multiple authors * Fixed number of spaces in indentation
This commit is contained in:
parent
9cbed31f10
commit
488cb39f9c
@ -16,28 +16,35 @@
|
||||
<span class="title">{{entry.title}}</span>
|
||||
<span class="author">
|
||||
{% for author in entry.author_array %}
|
||||
{% unless forloop.last %}
|
||||
{% if author.last == site.scholar.last_name %}
|
||||
<em>{{author.last}}, {{author.first}}</em>,
|
||||
{% else %}
|
||||
{% if site.data.coauthors[author.last] %}
|
||||
<a href="{{site.data.coauthors[author.last].url}}" target="_blank">{{author.last}}, {{author.first}}</a>,
|
||||
{% else %}
|
||||
{{author.last}}, {{author.first}},
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
and
|
||||
{% if forloop.length == 1 %}
|
||||
{% if author.last == site.scholar.last_name %}
|
||||
<em>{{author.last}}, {{author.first}}</em>
|
||||
{% else %}
|
||||
{% if site.data.coauthors[author.last] %}
|
||||
<a href="{{site.data.coauthors[author.last].url}}" target="_blank">{{author.last}}, {{author.first}}</a>
|
||||
{% else %}
|
||||
{{author.last}}, {{author.first}}
|
||||
{% endif %}
|
||||
{{author.last}}, {{author.first}}
|
||||
{% endif %}
|
||||
{% endunless %}
|
||||
{% else %}
|
||||
{% unless forloop.last %}
|
||||
{% if author.last == site.scholar.last_name %}
|
||||
<em>{{author.last}}, {{author.first}}</em>,
|
||||
{% else %}
|
||||
{% if site.data.coauthors[author.last] %}
|
||||
<a href="{{site.data.coauthors[author.last].url}}" target="_blank">{{author.last}}, {{author.first}}</a>,
|
||||
{% else %}
|
||||
{{author.last}}, {{author.first}},
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if author.last == site.scholar.last_name %}
|
||||
and <em>{{author.last}}, {{author.first}}</em>
|
||||
{% else %}
|
||||
{% if site.data.coauthors[author.last] %}
|
||||
and <a href="{{site.data.coauthors[author.last].url}}" target="_blank">{{author.last}}, {{author.first}}</a>
|
||||
{% else %}
|
||||
and {{author.last}}, {{author.first}}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endunless %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</span>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user