diff --git a/themes/intotheeast/css/style.css b/themes/intotheeast/css/style.css index 4695e0d..7f6ab23 100644 --- a/themes/intotheeast/css/style.css +++ b/themes/intotheeast/css/style.css @@ -339,7 +339,8 @@ body::after { .journal-post-body p:last-child { margin-bottom: 0; } .journal-post.is-highlighted, -.entry-card.is-highlighted { +.entry-card.is-highlighted, +.story-card.is-highlighted { animation: card-highlight 0.7s ease-out forwards; } diff --git a/themes/intotheeast/templates/stories.html.twig b/themes/intotheeast/templates/stories.html.twig index b3c1ea1..26b0d5b 100644 --- a/themes/intotheeast/templates/stories.html.twig +++ b/themes/intotheeast/templates/stories.html.twig @@ -3,6 +3,35 @@ {% block content %} {% set stories = page.children.published().order('date', 'asc') %} +{# Collect stories that have coordinates for the mini-map #} +{% set map_entries = [] %} +{% for story in stories %} + {% if story.header.lat is not empty and story.header.lng is not empty %} + {% set map_entries = map_entries|merge([{ + 'lat': story.header.lat, + 'lng': story.header.lng, + 'title': story.title, + 'slug': story.slug, + 'url': story.url, + 'type': 'story', + 'force_connect': false, + 'transport_mode': null + }]) %} + {% endif %} +{% endfor %} + +{% set trip_page = page.parent() %} + +{% include 'partials/feed-map.html.twig' with { + 'map_entries': map_entries, + 'map_id': 'stories-map', + 'map_var': 'storiesMap', + 'link_href': null, + 'card_prefix': 'story-', + 'trip_page': trip_page, + 'show_journey': false +} only %} +