{{ include.rank }}
{% if include.candidatePage.img %} {% if site.mediaStorage %} {% capture img %}https://a.pirati.cz/resize/225x225/{{ site.mediaStorage }}/img/{{ include.candidatePage.img }}{% endcapture %} {%- else -%} {% capture img %}{% asset '{{ include.candidatePage.img }}' magick:resize='225x225^' magick:gravity='center' magick:crop='225x225+0+0' @path %}{% endcapture %} {%- endif -%} {% else %} {% capture img %}https://a.pirati.cz/common/img/people/unknown-pirate.svg{% endcapture %} {% endif %} {% capture img_alt %}{% include people/fullname.html person=include.candidatePage plain=true %}{% endcapture %} {% include avatar.html url=include.candidatePage.url class="avatar--sm sm:avatar--lg" src=img alt=img_alt %}

{% include people/fullname.html person=include.candidatePage %}

{% if include.candidatePage.mail %}
{{ include.candidatePage.mail }}
{% endif %}

{{ include.candidate.profession }}

{% if include.candidate.age %}
{{ include.candidate.age }} let
{% endif %} {% if include.candidate.party %}
{% if include.candidate.partyImg %} {% comment %}We expect an SVG format here to make things scalable{% endcomment %} {% capture partyImg %}{{ include.candidate.partyImg | prepend: "/assets/img/" | absolute_url }}{% endcapture %} {% include avatar.html class="w-6 mr-2" alt=include.candidate.party src=partyImg %} {% endif %} {{ include.candidate.party }}
{% endif %}