From 5191c0d9f2d6d8f8987e9d7d19cd7ff538cda4a0 Mon Sep 17 00:00:00 2001 From: Midgard Date: Tue, 15 Sep 2020 20:51:15 +0200 Subject: [PATCH] Capitalize themes --- Rules | 3 ++- layouts/verenigingen.erb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Rules b/Rules index 3bc827f..146f9c0 100644 --- a/Rules +++ b/Rules @@ -6,7 +6,8 @@ preprocess do themas.each do |thema| content = '' attributes = { - naam: thema + identifier: thema, + naam: thema.capitalize } identifier = "/themas/#{thema}" diff --git a/layouts/verenigingen.erb b/layouts/verenigingen.erb index 0eb1e09..2d76b9d 100644 --- a/layouts/verenigingen.erb +++ b/layouts/verenigingen.erb @@ -5,7 +5,7 @@ <% for thema in themas %>
- <%= @items["/assets/themas_icon/"+thema[:naam]+".svg"].compiled_content %> + <%= @items["/assets/themas_icon/"+thema[:identifier]+".svg"].compiled_content %>

<%= thema[:naam] %>