[Prep] location in new tab
This commit is contained in:
2
prep.py
2
prep.py
@@ -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>")
|
||||
if "https://" in location:
|
||||
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:
|
||||
event_html.append(f"<div class='place'>@{location.strip()}</div>")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user