From de8f6697f4b625bbee8b2536b30a7b479e3cc3d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Klatt?= Date: Mon, 1 Feb 2016 12:13:18 +0100 Subject: [PATCH] add 'database' for people and affiliations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Torbjörn Klatt --- _data/orgs.yml | 27 +++++++++++++++ _data/people.yml | 66 +++++++++++++++++++++++++++++++++++++ _plugins/email_obfuscate.rb | 10 ++++++ about/people.md | 40 ++++++++++++++++++++++ 4 files changed, 143 insertions(+) create mode 100644 _data/orgs.yml create mode 100644 _data/people.yml create mode 100644 _plugins/email_obfuscate.rb diff --git a/_data/orgs.yml b/_data/orgs.yml new file mode 100644 index 00000000..be36ba20 --- /dev/null +++ b/_data/orgs.yml @@ -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 diff --git a/_data/people.yml b/_data/people.yml new file mode 100644 index 00000000..802949b2 --- /dev/null +++ b/_data/people.yml @@ -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: cappello@anl.gov + 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: r.speck@fz-juelich.de + homepage: http://www.fz-juelich.de/ias/jsc/speck_r + +yves_r: + sur_name: Yves + given_name: Robert + affiliation: inria + email: + homepage: diff --git a/_plugins/email_obfuscate.rb b/_plugins/email_obfuscate.rb new file mode 100644 index 00000000..ab9e8eb2 --- /dev/null +++ b/_plugins/email_obfuscate.rb @@ -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) diff --git a/about/people.md b/about/people.md index 51f3090e..7573a56e 100644 --- a/about/people.md +++ b/about/people.md @@ -5,3 +5,43 @@ date: 2016-01-06 12:20 navbar: About subnavbar: People --- + + + + + + + + + + + +{% for person_hash in site.data.people %} + {% assign person = person_hash[1] %} + + + + + + +{% endfor %} + +
NameAffiliationEmailHomepage
{{ person.sur_name }}, {{ person.given_name }}{{ site.data.orgs[person.affiliation].title }} + {% if person.email %} + {% assign email = person.email | obfuscate_email %} + + {% endif %} + + {% if person.homepage %} + + + + {% endif %} +
\ No newline at end of file