From 715b7e8d9102809c7dba3b0dad3c20ba790143cc Mon Sep 17 00:00:00 2001 From: Vahid Al Date: Thu, 11 Jan 2024 13:22:11 +0330 Subject: [PATCH] Update script.py --- script.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/script.py b/script.py index 57fa928..dfdc0ff 100644 --- a/script.py +++ b/script.py @@ -46,14 +46,14 @@ h("meta", name="viewport", content="width=device-width, initial-scale=1"), h("meta", charset="utf-8"), # OG - h("meta", name="og:title", content=data.get("name")), - h("meta", name="og:description", content=data.get("description")), - h("meta", name="og:image", content=f"img/{data.get('image')}"), + h("meta", property="og:title", content=data.get("name")), + h("meta", property="og:description", content=data.get("description")), + h("meta", property="og:image", content=f"img/{data.get('image')}"), # Twitter / X - h("meta", name="twitter:title", content=data.get("name")), - h("meta", name="twitter:description", content=data.get("description")), - h("meta", name="twitter:image", content=f"img/{data.get('image')}"), - h("meta", name="twitter:card", content="summary_large_image"), + h("meta", property="twitter:title", content=data.get("name")), + h("meta", property="twitter:description", content=data.get("description")), + h("meta", property="twitter:image", content=f"img/{data.get('image')}"), + h("meta", property="twitter:card", content="summary_large_image"), ) head = frag(