Capitalize themes

This commit is contained in:
Midgard 2020-09-15 20:51:15 +02:00
parent cb37bdf0c2
commit b8af43b67d
Signed by: midgard
GPG key ID: 511C112F1331BBB4
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>