kommunalwahl2020/site/_includes/candidates.html

37 lines
1,000 B
HTML
Raw Normal View History

2020-02-08 18:51:45 +00:00
<main role="main" class="container">
{% assign candidate = site.data.candidates | where:"slug",include.slug | first %}
<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">
<h5>Die Antworten von<br>{{ candidate.name }}</h5>
{% 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>
<p>{% include {{ candidate.slug }}/{{ question.slug }}.html %}</p>
{% endfor %}
</div>
{% endfor %}
</div>
</div>
</div>
</main>