This commit is contained in:
Robbe Van Herck 2020-03-19 21:05:26 +01:00
parent d57e9660ac
commit 8a9aeaa01f
4 changed files with 11 additions and 1 deletions

1
Rules
View file

@ -48,6 +48,7 @@ compile '/stylesheets/*.{sass,scss}' do
end
compile '/*.erb' do
filter :erb
write item.identifier.without_ext
end

View file

@ -0,0 +1 @@
<%= to_json(verenigingen) %>

View file

@ -11,4 +11,12 @@ module VerenigingenHelper
def konvents
@items.find_all("**/verenigingen/*").map{|x| x[:konvent]}.uniq.compact
end
def verenigingen
@items.find_all("**/verenigingen/*").map{|x| {
"titel" => x[:titel],
"naam" => x[:naam],
"konvent" => x[:konvent],
"themas" => x[:themas]
}}.to_a
end
end