Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def render_news(news_items, start, count=20):
|
|
| 37 |
result = ""
|
| 38 |
for i, item in enumerate(sliced, start + 1):
|
| 39 |
result += f"<strong>{i}. {item['title']}</strong><br>\n"
|
| 40 |
-
result += f"<a href='{item['link']}'
|
| 41 |
result += f"🗓️ प्रकाशित: {item['published']}<br>\n"
|
| 42 |
result += f"<hr style='margin: 10px 0;' />\n"
|
| 43 |
return result
|
|
|
|
| 37 |
result = ""
|
| 38 |
for i, item in enumerate(sliced, start + 1):
|
| 39 |
result += f"<strong>{i}. {item['title']}</strong><br>\n"
|
| 40 |
+
result += f"<a href='#' onclick=\"window.location.href='{item['link']}'\" style='text-decoration: none; color: blue;'>🔗 समाचार लिंक</a><br>\n"
|
| 41 |
result += f"🗓️ प्रकाशित: {item['published']}<br>\n"
|
| 42 |
result += f"<hr style='margin: 10px 0;' />\n"
|
| 43 |
return result
|