mirror of
https://github.com/michivonah/website-v3.git
synced 2025-12-23 05:46:29 +01:00
implement faq section
This commit is contained in:
parent
384e92ba6a
commit
e6997b307c
6 changed files with 114 additions and 3 deletions
14
layouts/partials/faq.html
Normal file
14
layouts/partials/faq.html
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<div id="faq" class="faq">
|
||||
<h1 class="fade-up">{{ T "faq" }}</h1>
|
||||
<div class="faq-container">
|
||||
{{ $faqs := where .Site.RegularPages "Section" "faq" }}
|
||||
{{ range $faqs }}
|
||||
<details id="faq-{{ .Params.slug }}" class="fade-up" name="faq">
|
||||
<summary>{{ .Title }}</summary>
|
||||
<div class="faq-answer">
|
||||
{{ .Content | safeHTML }}
|
||||
</div>
|
||||
</details>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue