This commit is contained in:
2025-11-17 12:46:59 +01:00
parent 9f167a6534
commit 6e185c025d

View File

@@ -86,26 +86,45 @@
<!-- TL;DR Section --> <!-- TL;DR Section -->
<tr> <tr>
<td style="padding: 30px 40px;"> <td style="padding: 30px 40px;">
<h2 style="margin: 0 0 20px 0; font-size: 22px; font-weight: 700; color: #1a1a1a;"> <h2 style="margin: 0 0 8px 0; font-size: 22px; font-weight: 700; color: #1a1a1a;">
📋 TL;DR - Quick Summary 📋 TL;DR - Quick Summary
</h2> </h2>
<p style="margin: 0 0 15px 0; font-size: 14px; color: #666666;"> <p style="margin: 0 0 20px 0; font-size: 13px; color: #999999;">
Here's everything in one sentence each: Scan through today's top stories in seconds
</p> </p>
<!-- TL;DR Box -->
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color: #f8f9fa; border-radius: 8px; border-left: 4px solid #667eea;">
<tr>
<td style="padding: 20px 25px;">
{% for section in category_sections %} {% for section in category_sections %}
{% for article in section.articles %} {% for article in section.articles %}
<div style="margin-bottom: 12px; padding-left: 20px; position: relative;"> <table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="margin-bottom: 15px;">
<span style="position: absolute; left: 0; top: 0; color: #667eea; font-weight: 700;">{{ loop.index }}.</span> <tr>
<p style="margin: 0; font-size: 14px; line-height: 1.5; color: #333333;"> <td style="width: 30px; vertical-align: top; padding-top: 2px;">
<strong>{{ article.title_en if article.title_en else article.title }}</strong> <span style="display: inline-block; background-color: #667eea; color: #ffffff; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; font-size: 11px; font-weight: 700;">
{{ article.summary.split('.')[0] }}. {{ loop.index }}
</span>
</td>
<td style="vertical-align: top;">
<p style="margin: 0; font-size: 14px; line-height: 1.6; color: #333333;">
<strong style="color: #1a1a1a;">{{ article.title_en if article.title_en else article.title }}</strong>
<br>
<span style="color: #666666;">{{ article.summary.split('.')[0] }}.</span>
</p> </p>
</div> </td>
</tr>
</table>
{% if not loop.last %}
<div style="height: 1px; background-color: #e0e0e0; margin: 10px 0;"></div>
{% endif %}
{% endfor %} {% endfor %}
{% endfor %} {% endfor %}
</td> </td>
</tr> </tr>
</table>
</td>
</tr>
{% if transport_disruptions and transport_disruptions|length > 0 %} {% if transport_disruptions and transport_disruptions|length > 0 %}
<!-- Divider --> <!-- Divider -->