Skip to content
Snippets Groups Projects
title.html 828 B
Newer Older
Erxleben, Fredo's avatar
Erxleben, Fredo committed
    Inserts the (academic) title of a person.

    Assumes that there is a variable "person" already defined.  
    It holds a key "title" and an associated value which is pasted here 
    and all spaces are replaced by  
    If the key is not present, an informative HTML comment will be inserted.
{%- assign person = include.person -%}
{%- if person -%}
    {%- if person.title -%}
Erxleben, Fredo's avatar
Erxleben, Fredo committed
        <span class="title">
            {{ person.title | replace: " ", "&thinsp;" }}
        </span>
Erxleben, Fredo's avatar
Erxleben, Fredo committed
        <!-- 
            NOTE: team_card/title.html was included,
            but person.title was not defined
        -->
    {%- endif -%}
{%- else -%}
Erxleben, Fredo's avatar
Erxleben, Fredo committed
    <!--
        WARNING: team_card/title.html was included, 
        but no person object was defined 
    -->