kommunalwahl2020/site/all.html

54 lines
1.6 KiB
HTML

---
layout: home
---
<main role="main" class="container">
<div class="container-fluid">
<div class="row">
<nav class="col-md-3 d-none d-md-block" id="myScrollspy">
<ul class="nav nav-pills flex-column position-fixed">
{% for topic in site.data.topics %}
<li class="nav-item">
<a class="nav-link {% if forloop.first %}active{% endif %}" href="#{{ topic.slug }}">{{ topic.title }}</a>
</li>
{% endfor %}
</ul>
</nav>
<div class="col-md-9 col-sm-12">
{% for topic in site.data.topics %}
<div id="{{ topic.slug }}">
<h2 style="padding-top:5rem;margin-top:-5rem;">{{ topic.title }}</h2>
{% for question in topic.questions %}
<h5>{{ question.text }}</h5>
<div id="accordion_{{ question.slug }}">
{% for candidate in site.data.candidates %}
<div class="card">
<div class="card-header" id="heading_{{ question.slug }}_{{ candidate.slug }}">
<h5 class="mb-0">
<button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapse_{{ question.slug }}_{{ candidate.slug }}" aria-expanded="false" aria-controls="collapse_{{ question.slug }}_{{ candidate.slug }}">
{{ candidate.name }}
</button>
</h5>
</div>
<div id="collapse_{{ question.slug }}_{{ candidate.slug }}" class="collapse" aria-labelledby="heading_{{ question.slug }}_{{ candidate.slug }}" data-parent="#accordion_{{ question.slug }}">
<div class="card-body">
{% include {{ candidate.slug }}/{{ question.slug }}.html %}
</div>
</div>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
{% endfor %}
</div>
</div>
</div>
</main>