From da7fbaf5b19723f94308fac8f48c92099520641d Mon Sep 17 00:00:00 2001 From: Mischa Date: Sat, 20 Jun 2026 13:04:09 +0000 Subject: [PATCH] feat: replace journal entry card with inline journal-post in trip feed --- themes/intotheeast/templates/trip.html.twig | 72 ++++++++++++--------- 1 file changed, 40 insertions(+), 32 deletions(-) diff --git a/themes/intotheeast/templates/trip.html.twig b/themes/intotheeast/templates/trip.html.twig index 90fbc4f..a42b98e 100644 --- a/themes/intotheeast/templates/trip.html.twig +++ b/themes/intotheeast/templates/trip.html.twig @@ -222,45 +222,53 @@ {% endif %} {% if item.type == 'journal' %} - - {% if hero %} -
- {{ entry.title }} -
- - {% if entry.header.location_city or entry.header.location_country %} - - ๐Ÿ“ - {% if entry.header.location_city %}{{ entry.header.location_city|slice(0,20) }}{% endif %} - {% if entry.header.location_city and entry.header.location_country %}, {% endif %} - {% if entry.header.location_country %}{{ entry.header.location_country }}{% endif %} - - {% endif %} -
-
- {% else %} -
- + {% set weather_icons = { + 'Sunny': 'โ˜€๏ธ', 'Partly cloudy': 'โ›…', 'Cloudy': 'โ˜๏ธ', + 'Foggy': '๐ŸŒซ๏ธ', 'Drizzle': '๐ŸŒฆ๏ธ', 'Rain': '๐ŸŒง๏ธ', + 'Snow': 'โ„๏ธ', 'Thunderstorm': 'โ›ˆ๏ธ' + } %} +
+
+

{{ entry.title }}

+
+
+ + {% set images = entry.media.images %} + {% if images|length > 0 %} +
+ {% for img in images %} +
+ {{ entry.title }}
- {% endif %} -
-

{{ entry.title }}

-

{{ entry.summary|striptags|slice(0, 250)|trim }}

- Read entry โ†’ -
- + {% endfor %} +
+ {% if images|length > 1 %} + + {% endif %} + {% endif %} + +
{{ entry.content|raw }}
+
{% else %} {% if hero %}