[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>")
|
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>")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user