_layouts/communal-elections.html in jekyll-theme-pirati-6.8.0 vs _layouts/communal-elections.html in jekyll-theme-pirati-6.9.0

- old
+ new

@@ -18,11 +18,15 @@ {% include page-header.html headline=headline content=headerContent %} </div> <div class="o-section"> <div class="row"> - <div class="columns medium-8"> + {% if programCategories.size > 0 %} + <div class="columns medium-8"> + {% else %} + <div class="columns medium-12"> + {% endif %} <div class="o-section-header o-section-header--bordered"> <h3 class="o-section__heading t-h2-super">Kandidátní listina</h3> </div> <div class="c-program-candidates"> @@ -39,17 +43,16 @@ {% if candidates.tail.size > 0 %} <div class="c-program-candidates__others"> {% for candidate in candidates.tail %} <p> + <div itemprop="description" class="c-content-block c-emphasized-text"> {% assign candidateRank = forloop.index | plus: 1 | plus: candidates.head.size %} <strong> {{ candidateRank }}. {% if candidate.uid %} {% assign candidatePage = site.people | where: "uid", candidate.uid | first %} - <a href={{candidatePage.url}}> - {% include people/fullname.html person=candidatePage %}{% if candidate.age or candidate.profession or candidate.party %}, {% endif %} - </a> + <a href={{candidatePage.url}}> {% include people/fullname.html person=candidatePage %}</a>{% if candidate.age or candidate.profession or candidate.party %}, {% endif %} {% else %} {{ candidate.name }}{% if candidate.age or candidate.profession or candidate.party %}, {% endif %} {% endif %} </strong> @@ -60,10 +63,11 @@ {{ candidate.profession }}{% if candidate.party %}, {% endif %} {% endif %} {% if candidate.party %} {{ candidate.party }} {% endif %} + </div> </p> {% endfor %} </div> {% endif %} @@ -71,10 +75,11 @@ {% if candidates.note %} <p><strong>Pozn.:</strong> {{ candidates.note }}</p> {% endif %} </div> + {% if programCategories.size > 0 %} <div class="columns medium-4"> <div class="o-section-header o-section-header--bordered"> <h3 class="o-section__heading t-h2-super">Program</h3> </div> <div class="c-program-items"> @@ -90,8 +95,9 @@ </div> </div> {% endfor %} </div> </div> + {% endif %} </div> </div>