cleanup
This commit is contained in:
@@ -86,24 +86,43 @@
|
|||||||
<!-- 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>
|
||||||
|
|
||||||
{% for section in category_sections %}
|
<!-- TL;DR Box -->
|
||||||
{% for article in section.articles %}
|
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color: #f8f9fa; border-radius: 8px; border-left: 4px solid #667eea;">
|
||||||
<div style="margin-bottom: 12px; padding-left: 20px; position: relative;">
|
<tr>
|
||||||
<span style="position: absolute; left: 0; top: 0; color: #667eea; font-weight: 700;">{{ loop.index }}.</span>
|
<td style="padding: 20px 25px;">
|
||||||
<p style="margin: 0; font-size: 14px; line-height: 1.5; color: #333333;">
|
{% for section in category_sections %}
|
||||||
<strong>{{ article.title_en if article.title_en else article.title }}</strong> —
|
{% for article in section.articles %}
|
||||||
{{ article.summary.split('.')[0] }}.
|
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="margin-bottom: 15px;">
|
||||||
</p>
|
<tr>
|
||||||
</div>
|
<td style="width: 30px; vertical-align: top; padding-top: 2px;">
|
||||||
{% endfor %}
|
<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;">
|
||||||
{% endfor %}
|
{{ 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>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
{% if not loop.last %}
|
||||||
|
<div style="height: 1px; background-color: #e0e0e0; margin: 10px 0;"></div>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endfor %}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user