From df3b282e9f5ddff28779fae7bdf242951d5e264b Mon Sep 17 00:00:00 2001 From: Greg Walker Date: Wed, 30 Oct 2024 14:52:04 -0500 Subject: [PATCH] set a manual ID on the 'today' tab forecast summary --- .../templates/partials/daily-summary-list-item.html.twig | 4 +++- .../templates/partials/today-summary-forecast.html.twig | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/web/themes/new_weather_theme/templates/partials/daily-summary-list-item.html.twig b/web/themes/new_weather_theme/templates/partials/daily-summary-list-item.html.twig index 574d4031d..200999a45 100644 --- a/web/themes/new_weather_theme/templates/partials/daily-summary-list-item.html.twig +++ b/web/themes/new_weather_theme/templates/partials/daily-summary-list-item.html.twig @@ -10,7 +10,9 @@ intended for use within the "Today" tab, and should only display some of the forecast information for the current day #} -{% set itemId = periods[0].monthAndDay | lower | replace({" ":"-"}) %} +{% if itemId is null %} + {% set itemId = periods[0].monthAndDay | lower | replace({" ":"-"}) %} +{% endif %}
  • diff --git a/web/themes/new_weather_theme/templates/partials/today-summary-forecast.html.twig b/web/themes/new_weather_theme/templates/partials/today-summary-forecast.html.twig index c5b894280..2e977dc18 100644 --- a/web/themes/new_weather_theme/templates/partials/today-summary-forecast.html.twig +++ b/web/themes/new_weather_theme/templates/partials/today-summary-forecast.html.twig @@ -12,6 +12,7 @@ {% set precipHours = today.qpf[0] %} {% include '@new_weather_theme/partials/daily-summary-list-item.html.twig' with { + itemId: "quick-forecast-summary", 'periods': today.periods, 'dayHours': today.hours, 'alerts': today.alerts,