Voeg FAQ toe

This commit is contained in:
Rien Maertens 2020-03-19 23:01:10 +01:00
parent b2c08ae4a5
commit 3ddc19da60
No known key found for this signature in database
GPG key ID: AE66CE42F1AF9DEF
6 changed files with 45 additions and 0 deletions

10
Rules
View file

@ -28,6 +28,16 @@ compile '/homepage.md' do
write '/index.html'
end
compile '/faq/*' do
filter :kramdown
end
compile '/faq.erb' do
filter :erb
layout '/default.*'
write '/faq/index.html'
end
compile '/verenigingen.md' do
filter :kramdown
layout '/verenigingen.*'

16
content/faq.erb Normal file
View file

@ -0,0 +1,16 @@
---
titel: FAQ
navigable: true
order: 3
---
<h1>FAQ — Vaakgevraagdevragen</h1>
<% @items.find_all('/faq/*').each do |question| %>
<details>
<summary>
<%= question[:vraag] %>
</summary>
<p>
<%= question.compiled_content %>
</p>
</details>
<% end %>

View file

@ -0,0 +1,5 @@
---
vraag: Komen er meer meer FAQ-vragen?
---
Ja. Misschien. Ik weet het niet?

View file

@ -0,0 +1,5 @@
---
vraag: 'Wat is je lievelingskleur?'
---
PAARS.

View file

@ -0,0 +1,7 @@
---
vraag: "Voor mij één gratis brood."
---
Wij **verkopen** _geen_ gratis brood.
[MIJNHEER](http://www.broodt.nl/).
![broodt](https://d3sl5wu5wmx0de.cloudfront.net/app/uploads/2016/04/broodt-e1460364833659-560x216.png)

View file

@ -1,6 +1,8 @@
<html>
<head>
<meta charset="UTF-8">
<title> Durf Doen! - <%= item[:titel] || item.identifier.without_ext.split('/').last %> </title>
<link rel="stylesheet" href="/stylesheets/main.css">
<link rel="shortcut icon" href="/assets/favicon.png">
<%= item[:head] %>