Skip to content
Snippets Groups Projects
name.html 760 B
Newer Older
Erxleben, Fredo's avatar
Erxleben, Fredo committed
    Inserts the name of a person.
    
    Assumes that there is a variable "person" already defined.  
    It holds a key "name" and an associated value which is pasted here 
    verbatim.
    If the key is not present, an informative HTML comment will be inserted.
{%- assign person = include.person -%}
{%- if person -%}
    {%- if person.name -%}
Erxleben, Fredo's avatar
Erxleben, Fredo committed
        <span class="name">
            &nbsp;{{ person.name }}
Erxleben, Fredo's avatar
Erxleben, Fredo committed
        </span>
Erxleben, Fredo's avatar
Erxleben, Fredo committed
        <!-- 
            NOTE: team_card/name.html was included,
            but person.name was not defined
        -->
    {%- endif -%}
{%- else -%}
Erxleben, Fredo's avatar
Erxleben, Fredo committed
    <!--
        WARNING: team_card/name.html was included,
        but no person object was defined
    -->