-
Notifications
You must be signed in to change notification settings - Fork 1
/
faq.html
43 lines (42 loc) · 1.57 KB
/
faq.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
layout: base
---
<section class="container">
<header class="row faq-header">
<h1 class="">Frequently Asked Questions</h1>
</header>
<div class="row">
<ul class="col-auto faq-toc">
{% assign count = 1 %}
{% for frequent_question in site.data.faq %}
<li class="row no-gutters faq-toc-item" data-toggle="collapse" data-target="#collapse-{{ forloop.index }}" aria-expanded="false" aria-controls="collapse-{{ forloop.index }}"><a href="#entry-{{ count }}">{{ frequent_question.question }}</a></li>
{% assign count = count | plus: 1 %}
{% endfor %}
</ul>
</div>
<div class="row">
<div id="accordion" class="col-12 no-gutter-left no-gutter-right">
{% assign count = 1 %}
{% for frequent_question in site.data.faq %}
<div id="entry-{{ count }}"class="card faq-entry">
<div class="card-header faq-question" id="question-{{ forloop.index }}">
<h5 class="mb-0 ">
<button class="btn btn-link collapsed" data-toggle="collapse"
data-target="#collapse-{{ forloop.index }}" aria-expanded="false"
aria-controls="collapse-{{ forloop.index }}">
{{ frequent_question.question }}
</button>
</h5>
</div>
<div id="collapse-{{ forloop.index }}" class="collapse"
aria-labelledby="question-{{ forloop.index }}" data-parent="#accordion">
<div class="card-body">
{{ frequent_question.answer }}
</div>
</div>
</div>
{% assign count = count | plus: 1 %}
{% endfor %}
</div>
</div>
</section>