<hr style="margin-top: 3rem;">
{% if artist.events.all %}
<h2 class="section__title">{% trans "Also discover" %}</h2> <br>
-
<div class="msry__container">
<div class="msry__sizer"></div>
-
-{% for event in artist.events.all %}
- {% include 'agenda/includes/event_card.html' %}
-{% endfor %}
-
-{% for event in artist.events.all %}
+ {% for event in artist.events.all %}
+ {% include 'agenda/includes/event_card.html' %}
{% for video in event.videos.all %}
{% include 'festival/inc/video_card.html' %}
{% endfor %}
+ {% for post in event.blog_posts.all %}
+ {% include 'blog/includes/post_card.html' %}
{% endfor %}
-
+ {% endfor %}
</div>
{% endif %}
{% endblock %}
<div class="msry__container">
<div class="msry__sizer"></div>
{% with video.event as event %}
- {% include 'agenda/includes/event_card.html' %}
+ {% include 'agenda/includes/event_card.html' %}
+ {% for artist in event.artists.all %}
+ {% include "festival/inc/artist_card.html" %}
+ {% endfor %}
+ {% for video in event.videos.all %}
+ {% include 'festival/inc/video_card.html' %}
+ {% endfor %}
+ {% for post in event.blog_posts.all %}
+ {% include 'blog/includes/post_card.html' %}
+ {% endfor %}
{% endwith %}
+
</div>
</div>
{% endif %}
{% endblock %}
{% block event_related %}
-{% if event.artists.all or event.videos.all %}
+{% if event.artists.all or event.videos.all or event.blog_posts.all %}
<h2 class="section__title">{% trans "Also discover" %}</h2>
<div class="msry__container">
<div class="msry__sizer"></div>
{% include 'festival/inc/video_card.html' %}
{% endfor %}
{% endif %}
+{% if event.blog_posts.all %}
+ {% for post in event.blog_posts.all %}
+ {% include 'blog/includes/post_card.html' %}
+ {% endfor %}
+{% endif %}
</div>
{% endif %}
{% endblock %}
</ul>
{% endblock %}
+
{% block blog_post_detail_related_posts %}
-{% if related_posts %}
+{% if related_posts or blog_post.events.all %}
<div id="related-posts">
-<h3>{% trans 'Related posts' %}</h3>
+<h3>{% trans "Also discover" %}</h3>
<div class="msry__container">
<div class="msry__sizer"></div>
{% for post in related_posts %}
{% include 'blog/includes/post_card.html' %}
{% endfor %}
+ {% for event in blog_post.events.all %}
+ {% for artist in event.artists.all %}
+ {% include "festival/inc/artist_card.html" %}
+ {% endfor %}
+ {% for video in event.videos.all %}
+ {% include 'festival/inc/video_card.html' %}
+ {% endfor %}
+ {% for post in event.blog_posts.all %}
+ {% include 'blog/includes/post_card.html' %}
+ {% endfor %}
+ {% endfor %}
</div>
</div>
{% endif %}