diff --git a/fet2020/fet2020/views.py b/fet2020/fet2020/views.py index 33a212ba..3d2e5bdf 100644 --- a/fet2020/fet2020/views.py +++ b/fet2020/fet2020/views.py @@ -34,12 +34,12 @@ def index(request): featured_meeting = FetMeeting.objects.get_meetings() context = { - 'posts': posts, + 'posts': deque(list(posts)[:5]), 'events': Event.all_events.get_five_events(), 'featured_post': featured_post, 'featured_event': featured_event, 'featured_meeting': featured_meeting, - 'tags_list': ", ".join(t) + 'tags_list': " ".join(t) } return render(request, 'home.html', context) diff --git a/fet2020/templates/home.html b/fet2020/templates/home.html index d627f8dc..a9576468 100644 --- a/fet2020/templates/home.html +++ b/fet2020/templates/home.html @@ -4,60 +4,67 @@ {% block content %} -
- +
{% with post=featured_post %} -
-

Neuigkeiten

+
+
- {% with post=featured_event %} - {% include 'posts/partials/_article_row.html' %} - {% endwith %} - {% for post in featured_meeting %} - {% include 'posts/partials/_meeting_row.html' %} - {% endfor %} +
+ +

Neuigkeiten

+ + {% with post=featured_event %} + {% include 'posts/partials/_article_row.html' %} + {% endwith %} + {% for post in featured_meeting %} + {% include 'posts/partials/_meeting_row.html' %} + {% endfor %} +
-
+
{{ tags_list|tags_to_url }}
-
+
{% for post in posts %} {% include 'posts/partials/_posts_hero.html' %} {% endfor %}
-
+ +
{% for post in events %} {% include 'posts/partials/_date_box.html' %} {% endfor %} -
+
+ + Mehr anzeigen +
{% endblock %} diff --git a/fet2020/templates/layout.html b/fet2020/templates/layout.html index 9d471df5..cca8e03c 100644 --- a/fet2020/templates/layout.html +++ b/fet2020/templates/layout.html @@ -8,9 +8,12 @@ FET + +
+
@@ -39,11 +42,11 @@