Capitalize themes
This commit is contained in:
parent
09a33275ff
commit
5191c0d9f2
2 changed files with 3 additions and 2 deletions
3
Rules
3
Rules
|
@ -6,7 +6,8 @@ preprocess do
|
||||||
themas.each do |thema|
|
themas.each do |thema|
|
||||||
content = ''
|
content = ''
|
||||||
attributes = {
|
attributes = {
|
||||||
naam: thema
|
identifier: thema,
|
||||||
|
naam: thema.capitalize
|
||||||
}
|
}
|
||||||
identifier = "/themas/#{thema}"
|
identifier = "/themas/#{thema}"
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<% for thema in themas %>
|
<% for thema in themas %>
|
||||||
<a class="tile clickable tile--medium" href="<%= thema.path %>">
|
<a class="tile clickable tile--medium" href="<%= thema.path %>">
|
||||||
<div class="tile__image tile__image--svg tile__image--blue">
|
<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>
|
</div>
|
||||||
<p class="tile__title tile__title--medium"> <%= thema[:naam] %> </p>
|
<p class="tile__title tile__title--medium"> <%= thema[:naam] %> </p>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in a new issue