You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
2.1 KiB
49 lines
2.1 KiB
{# uses loop variable role #}
|
|
{% set hasShortDescription = role.highlight and (not role.description.highlight) and role.description.short %}
|
|
|
|
<article class="role {% if not role.highlight %} lowlight lowlight-no-gradient{% endif %}{% if role.highlight and not role.description.highlight %} minimized{% endif %}">
|
|
<div class="header{% if not role.highlight %} lowlight{% endif %}">
|
|
{% if role.image %}<img src="/img/{{ role.image }}" class="icon" aria-hidden="true" />{% endif %}
|
|
<div class="firstline">
|
|
<h3 class="name">
|
|
{{ role.name }}
|
|
</h3>
|
|
{% if role.highlight and (hasShortDescription or role.achievements | hasLowlights) %}
|
|
{% include "components/resume/highlight-icon.njk" %}
|
|
{% endif %}
|
|
</div>
|
|
<span class="details">
|
|
{% if role.team %}<span class="team">on {{ role.team }} </span>{% endif %}
|
|
{% if role.company %}<span class="company">at {{ role.company }} </span>{% endif %}
|
|
{% if role.startDate or role.endDate %}
|
|
<span class="date">
|
|
{% if role.startDate %}
|
|
<span class="start"> from {{ role.startDate | monthAndYear }}</span>
|
|
{% endif %}
|
|
{% if role.endDate %}
|
|
<span class="end"> until {{ role.endDate | monthAndYear }}</span>
|
|
{% else %}
|
|
<span class="end"> (ongoing)</span>
|
|
{% endif %}
|
|
</span>
|
|
{% endif %}
|
|
</span>
|
|
</div>
|
|
{% if role.description.full %}
|
|
<div class="description{% if hasShortDescription or not role.highlight %} lowlight{% endif %}">
|
|
{{ role.description.full | md | safe }}
|
|
</div>
|
|
{% endif %}
|
|
{% if hasShortDescription %}
|
|
<div class="description highlight">
|
|
{{ role.description.short | md | safe }}
|
|
</div>
|
|
{% endif %}
|
|
{% if role.achievements %}
|
|
<ul class="achievements">
|
|
{% for achievement in role.achievements | sortHighlightsFirst %}
|
|
<li{% if not role.highlight or not achievement.highlight %} class="lowlight"{% endif %}>{{achievement.description | md | safe }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</article>
|
|
|