From 3345c076a9200f73f72e31f781dfb86710805d0b Mon Sep 17 00:00:00 2001 From: Mischa Date: Wed, 24 Jun 2026 23:52:40 +0200 Subject: [PATCH] style: replace weather emoji with Lucide SVG glyph icons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 8 conditions mapped to stroke-based 14×14 SVGs (sun, cloud-sun, cloud, cloud-fog, cloud-drizzle, cloud-rain, cloud-snow, cloud-lightning). Icons use currentColor and aria-hidden; text label retained alongside. --- .../templates/partials/entry-journal.html.twig | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/themes/intotheeast/templates/partials/entry-journal.html.twig b/themes/intotheeast/templates/partials/entry-journal.html.twig index 3c4dc78..17de19e 100644 --- a/themes/intotheeast/templates/partials/entry-journal.html.twig +++ b/themes/intotheeast/templates/partials/entry-journal.html.twig @@ -1,7 +1,12 @@ {% set weather_icons = { - 'Sunny': '☀️', 'Partly cloudy': '⛅', 'Cloudy': '☁️', - 'Foggy': '🌫️', 'Drizzle': '🌦️', 'Rain': '🌧️', - 'Snow': '❄️', 'Thunderstorm': '⛈️' + 'Sunny': '', + 'Partly cloudy': '', + 'Cloudy': '', + 'Foggy': '', + 'Drizzle': '', + 'Rain': '', + 'Snow': '', + 'Thunderstorm': '' } %}
@@ -12,7 +17,7 @@ {% if entry.header.location_city or entry.header.location_country %} - · 📍 + · {%- set _loc = [] -%} {%- if entry.header.location_city -%}{%- set _loc = _loc|merge([entry.header.location_city]) -%}{%- endif -%} {%- if entry.header.location_country -%}{%- set _loc = _loc|merge([entry.header.location_country]) -%}{%- endif -%} @@ -20,7 +25,7 @@ {% endif %} {% if entry.header.weather_desc %} - · {{ weather_icons[entry.header.weather_desc] ?? '' }} {{ entry.header.weather_desc }} + · {{ weather_icons[entry.header.weather_desc]|default('')|raw }} {{ entry.header.weather_desc }} {% endif %}