{% comment %} Inserts the abbreviation of an organization of a person, followed by a slash, if something was printed at all. Assumes that there is a variable "person" already defined. It holds a key "organization" and an associated value which is a foreign key into _data/hifis_organizations.yml If the key is not present, an informative HTML comment will be inserted. {% endcomment %} {% assign person = include.person %} {% if person %} {% if person.location.campus %} {% assign organization = site.data.helmholtz-centers[person.location.campus] %} {% if organization %} {{ organization.abbreviation }} {% else %} {{ person.location.campus }} {% endif%} / {% else %} {% endif %} {% else %} {% endif %}