diff --git a/themes/intotheeast/templates/dailies.html.twig b/themes/intotheeast/templates/dailies.html.twig index edc6c26..564a8db 100644 --- a/themes/intotheeast/templates/dailies.html.twig +++ b/themes/intotheeast/templates/dailies.html.twig @@ -12,7 +12,6 @@ {% for s in story_entries %} {% set all_items = all_items|merge([{'type': 'story', 'page': s, 'date': s.date}]) %} {% endfor %} -{% set all_items = all_items|sort((a, b) => a.date < b.date ? 1 : -1) %} {# Collect GPS entries for mini-map #} {% set map_entries = [] %} @@ -119,45 +118,53 @@ feedMap.on('load', function () { {% 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 %}