From 0f0d0a87075abce2753c1ee06b69a86a3dcf8244 Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Thu, 16 Feb 2017 13:14:14 +0100 Subject: [PATCH] fix double event --- content/index.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/index.erb b/content/index.erb index 30426a1..53b5593 100644 --- a/content/index.erb +++ b/content/index.erb @@ -40,7 +40,7 @@
- <% all_events.reverse[1..3].each do |event| %> + <% all_events.reject { |x| x == upcoming_events[0] }.reverse[0..2].each do |event| %>
<%= render '/partials/_tile.*', article: event,