-
Huste, Tobias authored
- Also make use of the {%- syntax to reduce whitespace in the generated HTML for the team member includes - Fix alignment of title in the section part
Huste, Tobias authored- Also make use of the {%- syntax to reduce whitespace in the generated HTML for the team member includes - Fix alignment of title in the section part
position.html 801 B
{%- comment -%}
Inserts the position description of a person.
Assumes that there is a variable "person" already defined.
It holds a key "position" and an associated value which is pasted here
verbatim.
If the key is not present, an informative HTML comment will be inserted.
{%- endcomment -%}
{%- assign person = include.person -%}
{%- if person -%}
{%- if person.position -%}
<span class="position">
{{ person.position }}
</span>
{%- else -%}
<!--
NOTE: team_card/position.html was included,
but person.position was not defined
-->
{%- endif -%}
{%- else -%}
<!--
WARNING: team_card/position.html was included,
but no person object was defined
-->
{%- endif -%}