Skip to content

Commit

Permalink
add 'database' for people and affiliations
Browse files Browse the repository at this point in the history
Signed-off-by: Torbjörn Klatt <[email protected]>
  • Loading branch information
torbjoernk committed Feb 1, 2016
1 parent 084c369 commit de8f669
Show file tree
Hide file tree
Showing 4 changed files with 143 additions and 0 deletions.
27 changes: 27 additions & 0 deletions _data/orgs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# A 'database' of the organisations participating in JLESC.
#
#

anl:
title: Argonne National Laboratory
logo: anl_logo.jpg

bsc:
title: Barcelona Supercomputing Center
logo: bsc_logo.svg

inria:
title: INRIA
logo: inria_logo.png

jsc:
title: Jülich Supercomputing Centre
logo: jsc_logo.svg

ncsa:
title: NCSA
logo: ncsa_vertical_logo.png

riken:
title: RIKEN
logo: riken_logo.png
66 changes: 66 additions & 0 deletions _data/people.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# A 'database' of people participating in the JLESC cooperation
#
# Each entry consists of a unique identifier and some fields:
#
# identifier:
# sur_name: Doe
# given_name: John
# affiliation: affiliation_id
# email: official email
# homepage: link to homepage
#
# The identifier should be constructed from the surname and the initial letter of the first name,
# all lower case and separated by an underscore.
#
# The affiliation must be an affiliation identifier as found in /_data/orgs.yml.
#
# The email should be the official 'work' email of the person, e.g. @fz-juelich.de.
#
# The homepage field can be left empty, but should point to a personal page with more details on
# research interests, publications and contact data.
#
# !! NOTE !!
# Please keep the entries below in alphanumerical order according to the identifier. Thanks!
#

cappello_f:
sur_name: Cappello
given_name: Franck
affiliation: anl
email: [email protected]
homepage:

kramer_b:
sur_name: Kramer
given_name: Bill
affiliation: ncsa
email:
homepage:

labarta_j:
sur_name: Labarta
given_name: Jesus
affiliation: bsc
email:
homepage:

sato_m:
sur_name: Sato
given_name: Mitsuhisa
affiliation: riken
email:
homepage:

speck_r:
sur_name: Speck
given_name: Robert
affiliation: jsc
email: [email protected]
homepage: http://www.fz-juelich.de/ias/jsc/speck_r

yves_r:
sur_name: Yves
given_name: Robert
affiliation: inria
email:
homepage:
10 changes: 10 additions & 0 deletions _plugins/email_obfuscate.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module Jekyll
module ObfuscateEmailFilter
def obfuscate_email(input)
input.strip!
input.reverse!
end
end
end

Liquid::Template.register_filter(Jekyll::ObfuscateEmailFilter)
40 changes: 40 additions & 0 deletions about/people.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,43 @@ date: 2016-01-06 12:20
navbar: About
subnavbar: People
---

<table id="people-db" class="table table-striped">
<thead class="thead-default">
<tr>
<th>Name</th>
<th>Affiliation</th>
<th>Email</th>
<th>Homepage</th>
</tr>
</thead>
<tbody>
{% for person_hash in site.data.people %}
{% assign person = person_hash[1] %}
<tr>
<td><strong>{{ person.sur_name }}</strong>, {{ person.given_name }}</td>
<td>{{ site.data.orgs[person.affiliation].title }}</td>
<td>
{% if person.email %}
{% assign email = person.email | obfuscate_email %}
<a target="_blank"
class="email-obfuscated"
title="write an email to {{ person.given_name }} {{ person.sur_name }}"
data-email="{{ email }}">
{{ email }}
</a>
{% endif %}
</td>
<td>
{% if person.homepage %}
<a href="{{ person.homepage }}"
target="_blank"
title="{{ person.homepage }}">
<i class="fa fa-home fa-fw"></i>
</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>

0 comments on commit de8f669

Please sign in to comment.