Voeg FAQ toe
This commit is contained in:
parent
b2c08ae4a5
commit
3ddc19da60
6 changed files with 45 additions and 0 deletions
10
Rules
10
Rules
|
@ -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
16
content/faq.erb
Normal 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 %>
|
5
content/faq/moetenermeervragenzijn.md
Normal file
5
content/faq/moetenermeervragenzijn.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
vraag: Komen er meer meer FAQ-vragen?
|
||||
---
|
||||
|
||||
Ja. Misschien. Ik weet het niet?
|
5
content/faq/nogeenvoorbeeldvraag.md
Normal file
5
content/faq/nogeenvoorbeeldvraag.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
vraag: 'Wat is je lievelingskleur?'
|
||||
---
|
||||
|
||||
PAARS.
|
7
content/faq/voorbeeldvraag.md
Normal file
7
content/faq/voorbeeldvraag.md
Normal 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)
|
|
@ -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] %>
|
||||
|
|
Loading…
Reference in a new issue