Skip to content
Snippets Groups Projects
Commit 8569b6a5 authored by Sophie Servan (DESY)'s avatar Sophie Servan (DESY)
Browse files

test if doi exists before linking

parent 96990020
No related branches found
No related tags found
No related merge requests found
Pipeline #281025 passed
...@@ -54,7 +54,12 @@ The projects in which members of our group are or have been involved are listed ...@@ -54,7 +54,12 @@ The projects in which members of our group are or have been involved are listed
{% for project in site.data.projects %} {% for project in site.data.projects %}
<tr> <tr>
<td> <td>
<a href="https://doi.org/{{ project.grantDoi }}">{{ project.acronym }}</a> ({{ project.startDate | date: "%Y" }} - {{ project.endDate | date: "%Y" }}) {% if project.grantDoi %}
<a href="https://doi.org/{{ project.grantDoi }}">{{ project.acronym }}</a>
{% else %}
{{ project.acronym }}
{% endif %}
<br>({{ project.startDate | date: "%Y" }} - {{ project.endDate | date: "%Y" }})
</td> </td>
<td class="justify">{{ project.teaser }}</td> <td class="justify">{{ project.teaser }}</td>
<td class="nowrap"> <td class="nowrap">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment