[Prep] location in new tab

This commit is contained in:
coja
2026-05-02 03:43:43 +02:00
parent 910f375c94
commit d001d6b287

View File

@@ -59,7 +59,7 @@ def build_html(events: list[dict], dayNames: list[str], typesNames: dict) -> str
event_html.append(f"<div class='title'>{title}</div>") event_html.append(f"<div class='title'>{title}</div>")
if "https://" in location: if "https://" in location:
place,link = location.split("https://") place,link = location.split("https://")
event_html.append(f"<div class='place'><a href=\"https://{link}\">@{place.strip()}</a></div>") event_html.append(f"<div class='place'><a href=\"https://{link}\" target='_blank'>@{place.strip()}</a></div>")
else: else:
event_html.append(f"<div class='place'>@{location.strip()}</div>") event_html.append(f"<div class='place'>@{location.strip()}</div>")