fix: add missing data-type attributes to entry cards in dailies.html.twig

This commit is contained in:
2026-06-20 12:40:58 +02:00
parent 2a151b710c
commit 246fbfde76
@@ -119,7 +119,7 @@ feedMap.on('load', function () {
{% endif %} {% endif %}
{% if item.type == 'journal' %} {% if item.type == 'journal' %}
<a class="entry-card" id="entry-{{ entry.slug }}" data-lat="{{ entry.header.lat }}" data-lng="{{ entry.header.lng }}" href="{{ entry.url }}"> <a class="entry-card" id="entry-{{ entry.slug }}" data-type="journal" data-lat="{{ entry.header.lat }}" data-lng="{{ entry.header.lng }}" href="{{ entry.url }}">
{% if hero %} {% if hero %}
<div class="entry-card-photo"> <div class="entry-card-photo">
<img src="{{ hero.cropResize(720, 405).url }}" alt="{{ entry.title }}" loading="lazy"> <img src="{{ hero.cropResize(720, 405).url }}" alt="{{ entry.title }}" loading="lazy">
@@ -159,7 +159,7 @@ feedMap.on('load', function () {
</div> </div>
</a> </a>
{% else %} {% else %}
<a class="entry-card entry-card--story" id="entry-{{ entry.slug }}" href="{{ entry.url }}"> <a class="entry-card entry-card--story" id="entry-{{ entry.slug }}" data-type="story" href="{{ entry.url }}">
{% if hero %} {% if hero %}
<div class="entry-card-photo entry-card-photo--story"> <div class="entry-card-photo entry-card-photo--story">
<img src="{{ hero.cropResize(720, 405).url }}" alt="{{ entry.title }}" loading="lazy"> <img src="{{ hero.cropResize(720, 405).url }}" alt="{{ entry.title }}" loading="lazy">