Commit 40166b31 authored by Matthieu Boileau's avatar Matthieu Boileau

Light syntax for authors

parent 883e6595
Pipeline #7754 passed with stage
in 1 minute and 54 seconds
......@@ -11,8 +11,7 @@ picture:
authors:
- name: Matthieu Boileau
email: matthieu.boileau@math.unistra.fr
- name: Vincent Legoll
email: vincentlegoll@gmail.com
- Vincent Legoll
chapter_preview_only:
- 3
- 4
......
......@@ -68,9 +68,16 @@
<table id="auteurs">
{% for author in authors %}
<tr>
<td>{{ author.name }}</td>
{% if author.email %}
<td><a href="mailto: {{ author.email }}"><img style="display:inline" width="20" src="img/email.svg"></a></td>
<td><a href="mailto: {{ author.email }}"><img style="display:inline" width="20" src="img/email.svg"></a></td>
<td>{{ author.name }}</td>
{% else %}
<td><span style="display:none"></span></td>
{% if author is mapping %}
<td>{{ author.name }}</td>
{% else %}
<td>{{ author }}</td>
{% endif %}
{% endif %}
</tr>
{% endfor %}
......
......@@ -11,6 +11,7 @@ picture:
authors:
- name: Nobody
email: nobody@nowhere.com
- Somebody
chapter_preview_only:
- 2
links:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment