From fbef9f766ca3c262506cf382a58798c34e9ab8a9 Mon Sep 17 00:00:00 2001 From: Josh Borrow <joshua.borrow@durham.ac.uk> Date: Mon, 25 Sep 2017 19:42:46 +0100 Subject: [PATCH] Added affiliations and websites --- data/contact.yaml | 2 ++ templates/contact.html | 16 ++++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/data/contact.yaml b/data/contact.yaml index 8aa36ca..2429229 100644 --- a/data/contact.yaml +++ b/data/contact.yaml @@ -34,6 +34,8 @@ people: [ { name: Mr. Joshua Borrow, role: PhD Student, + href: "http://www.dur.ac.uk/joshua.borrow", + affil: "Durham", }, { name: Pr. Tom Theuns, diff --git a/templates/contact.html b/templates/contact.html index eee4906..8732544 100644 --- a/templates/contact.html +++ b/templates/contact.html @@ -20,14 +20,18 @@ <p>The following people are involved in SWIFT:</p> <ul> {% for person in people %} - {% if person.role %} - <li>{{ person.name }} | {{ person.role }}</li> - {% else %} - <li>{{ person.name }}</li> - {% endif %} + <li> + {% if person.href %} + <a href="{{ person.href }}">{{ person.name }}</a> + {% else %} + {{ person.name }} + {% endif %} + {% if person.role %} | {{ person.role }}{% endif %} + {% if person.affil %} | {{ person.affil }}{% endif %} + </li> {% endfor %} </ul> </div> </div> </div> -{% endblock %} \ No newline at end of file +{% endblock %} -- GitLab