Dynamic FAQ page template

This commit is contained in:
2024-08-01 10:11:56 -04:00
parent 13bf91ba7d
commit 920e7972af
3 changed files with 37 additions and 5 deletions

View File

@@ -1,6 +1,10 @@
<h1>FAQ</h1>
<hr>
<h3>Is this a real website?</h3>
<p>No.</p>
<h3>I Can Has Cheezburger?</h3>
<p>No.</p>
{{range .}}
{{template "qa" .}}
{{end}}
{{define "qa"}}
<h3>{{.Question}}</h3>
<p>{{.Answer}}</p>
{{end}}