<% content_for :head do %> <% end %>
<%= if studytime? then render '/tiles/blokmap.*'end %>
<%= render '/partials/_tile.*', article: upcoming_events[0] || all_events[-1], small_text: if upcoming_events[0] then "Upcoming event" else "Past event" end%>
<%= render '/partials/_tile.*', article: sorted_articles.first, small_text: "Latest blogpost", htmlclass:"highlighted"%>
<% for i in [0,1,2] do event = upcoming_events[1+i] || all_events[-2-i] %>
<%= render '/partials/_tile.*', article: event, small_text: if upcoming_events[1] then "Upcoming event" else "Past event" end, htmlclass:"highlighted"%>
<%end%>
<% for i in [1,2,3] do post = sorted_articles[i] %>
<%= render '/partials/_tile.*', article: post, small_text: "blogpost"%>
<%end%>
<%= asset :js, :gamification %> <%= asset :js, :quote %>