diff --git a/website/thabloid/templatetags/thabloid_cards.py b/website/thabloid/templatetags/thabloid_cards.py index d8a7977006edee533429064281c3f01898785e61..5406d5125dbb6355776464eb84d013fd9bc8f847 100644 --- a/website/thabloid/templatetags/thabloid_cards.py +++ b/website/thabloid/templatetags/thabloid_cards.py @@ -9,8 +9,8 @@ register = template.Library() @register.inclusion_tag('includes/grid_item.html') def thabloid_card(year, thabloid): - class_name = 'older' - if thabloid.year - 3 < year: + class_name = 'year-older' + if thabloid.year >= year - 3: class_name = 'year-{}'.format(thabloid.year) view_url = reverse('thabloid:pages', args=[thabloid.year, thabloid.issue])