mirror of
https://github.com/michivonah/website-v3.git
synced 2025-12-22 21:36:28 +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>
|
||||
|
|
@ -5,6 +5,7 @@
|
|||
<a href="#" alt='{{ T "home" }}'>{{ T "home" }}</a>
|
||||
<a href="#about" alt='{{ T "about" }}'>{{ T "about" }}</a>
|
||||
<a href="#projects" alt='{{ T "projects" }}'>{{ T "projects" }}</a>
|
||||
<a href="#faq" alt='{{ T "faq-short" }}'>{{ T "faq-short" }}</a>
|
||||
<a href="https://blog.michivonah.ch" alt='{{ T "blog" }}'>{{ T "blog" }}</a>
|
||||
<a href="#contact" alt='{{ T "contact" }}'>{{ T "contact" }}</a>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue