Capitalize themes

This commit is contained in:
Midgard 2020-09-15 20:51:15 +02:00 committed by ajuvercr
parent 09a33275ff
commit 5191c0d9f2
2 changed files with 3 additions and 2 deletions

3
Rules
View file

@ -6,7 +6,8 @@ preprocess do
themas.each do |thema|
content = ''
attributes = {
naam: thema
identifier: thema,
naam: thema.capitalize
}
identifier = "/themas/#{thema}"

View file

@ -5,7 +5,7 @@
<% for thema in themas %>
<a class="tile clickable tile--medium" href="<%= thema.path %>">
<div class="tile__image tile__image--svg tile__image--blue">
<%= @items["/assets/themas_icon/"+thema[:naam]+".svg"].compiled_content %>
<%= @items["/assets/themas_icon/"+thema[:identifier]+".svg"].compiled_content %>
</div>
<p class="tile__title tile__title--medium"> <%= thema[:naam] %> </p>
</a>