_layouts/communal-elections.html in jekyll-theme-pirati-8.0.0.pre.alpha6 vs _layouts/communal-elections.html in jekyll-theme-pirati-8.0.0.pre.beta1

- old
+ new

@@ -139,17 +139,12 @@ <{% if candidatePage %}a href="{{ candidatePage.url }}"{% else %}div{% endif %} class="candidate-table-row"> <div class="candidate-table-row__position head-allcaps-heavy-2xs text-right">{{ candidateRank }}</div> {% include avatar.html class="avatar--sm candidate-table-row__avatar" src=img alt=candidate.name %} <div class="candidate-table-row__name head-heavy-2xs font-bold">{% if candidatePage %}{{ candidatePage.name }}{% else %}{{ candidate.name }}{% endif %}</div> <div class="candidate-table-row__bio head-allcaps-3xs">{% if candidate.age %}{{ candidate.age }} let{% endif %}{% if candidate.age and candidate.profession %}, {{ candidate.profession }}{% endif %}</div> - {% if candidate.party %} + {% if candidate.partyUid %} <div class="candidate-table-row__affiliation"> - {% if candidate.partyImg %} - {% comment %}We expect an SVG format here to make things scalable{% endcomment %} - {% capture partyImg %}{{ candidate.partyImg | prepend: "/assets/img/" | absolute_url }}{% endcapture %} - {% include avatar.html class="w-6 mr-2" alt=candidate.party src=partyImg %} - {% endif %} - <span class="font-bold font-condensed">{{ candidate.party }}</span> + {% include party.html uid=candidate.partyUid %} </div> {% endif %} </{% if candidatePage %}a{% else %}div{% endif %}> {% if forloop.last and partialTable %}</template>{% endif %}