diff --git a/content/index.erb b/content/index.erb index 7cd0566..9fa0212 100644 --- a/content/index.erb +++ b/content/index.erb @@ -1,63 +1,64 @@ <% content_for :head do %> - - - - - - - + + + + + + + <% end %> <% content_for :scripts do %> -<%= asset :js, :gamification %> + <%= asset :js, :gamification %> <% end %>
<%= if studytime? then render '/tiles/blokmap.*'end %> - -
- <%= render '/partials/_events_tile.*', event: front_page_events[0] %> -
-
- -
-
-
-
-

- - - -

-
-
- + +
+ <%= render '/partials/_events_tile.*', event: front_page_events.first %> +
+
+ +
+
+
+
+

+ + + +

+
+
+ +
- -
- <%= render '/partials/_blog_preview.*', post: sorted_articles.first %> +
+
+
+

Events

+
+ <% front_page_events[1..3].each do |event| %> +
+ <%= render '/partials/_events_tile.*', event: event %> +
+ <%end%>
-
-
-
- <% front_page_events[1..3].each do |event| %> -
- <%= render '/partials/_events_tile.*', event: event %> +
+
+

Blogposts

+
+ <% sorted_articles[0..3].each do |post| %> +
+ <%= render '/partials/_blog_preview.*', post: post %> +
+ <%end%>
- <%end%>
-
- <% sorted_articles[1..3].each do |post| %> -
- <%= render '/partials/_blog_preview.*', post: post %> -
- <%end%> - -
-
diff --git a/layouts/partials/_blog_preview.erb b/layouts/partials/_blog_preview.erb index 6325774..da8f314 100644 --- a/layouts/partials/_blog_preview.erb +++ b/layouts/partials/_blog_preview.erb @@ -17,5 +17,5 @@

<%= excerptize(post.reps[:text].compiled_content, length: 500).tr("\n", ' ')%>

+
-