update
This commit is contained in:
@@ -83,18 +83,18 @@
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Top Trending Section -->
|
||||
{% if trending_articles %}
|
||||
<!-- Category Sections -->
|
||||
{% for section in category_sections %}
|
||||
<tr>
|
||||
<td style="padding: 30px 40px 15px 40px;">
|
||||
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<h2 style="margin: 0; font-size: 22px; font-weight: 700; color: #1a1a1a; display: flex; align-items: center;">
|
||||
🔥 Top Trending in Munich
|
||||
<h2 style="margin: 0; font-size: 22px; font-weight: 700; color: #1a1a1a;">
|
||||
{{ section.icon }} {{ section.name }}
|
||||
</h2>
|
||||
<p style="margin: 8px 0 0 0; font-size: 13px; color: #666666;">
|
||||
The most talked-about stories today
|
||||
Top stories in {{ section.name.lower() }}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -102,8 +102,8 @@
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Trending Articles -->
|
||||
{% for article in trending_articles %}
|
||||
<!-- Category Articles -->
|
||||
{% for article in section.articles %}
|
||||
<tr>
|
||||
<td style="padding: 25px 40px;">
|
||||
<!-- Article Number Badge -->
|
||||
@@ -177,110 +177,16 @@
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
<!-- Other Articles Section -->
|
||||
{% if other_articles %}
|
||||
<!-- Section Divider -->
|
||||
<!-- Category Section Divider -->
|
||||
{% if not loop.last %}
|
||||
<tr>
|
||||
<td style="padding: 25px 40px;">
|
||||
<div style="height: 2px; background-color: #e0e0e0;"></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="padding: 30px 40px 15px 40px;">
|
||||
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<h2 style="margin: 0; font-size: 22px; font-weight: 700; color: #1a1a1a;">
|
||||
📰 More Stories
|
||||
</h2>
|
||||
<p style="margin: 8px 0 0 0; font-size: 13px; color: #666666;">
|
||||
Additional news from around Munich
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Other Articles -->
|
||||
{% for article in other_articles %}
|
||||
<tr>
|
||||
<td style="padding: 25px 40px;">
|
||||
<!-- Article Number Badge -->
|
||||
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<span style="display: inline-block; background-color: #666666; color: #ffffff; width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 50%; font-size: 12px; font-weight: 600;">
|
||||
{{ loop.index + trending_articles|length }}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- Article Title -->
|
||||
<h2 style="margin: 12px 0 8px 0; font-size: 19px; font-weight: 700; line-height: 1.3; color: #1a1a1a;">
|
||||
{{ article.title_en if article.title_en else article.title }}
|
||||
</h2>
|
||||
|
||||
<!-- Original German Title (subtitle) -->
|
||||
{% if article.title_en and article.title_en != article.title %}
|
||||
<p style="margin: 0 0 12px 0; font-size: 13px; color: #999999; font-style: italic;">
|
||||
Original: {{ article.title }}
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<!-- Article Meta -->
|
||||
<p style="margin: 0 0 12px 0; font-size: 13px; color: #999999;">
|
||||
{% if article.is_clustered %}
|
||||
<span style="color: #000000; font-weight: 600;">Multiple sources</span>
|
||||
{% else %}
|
||||
<span style="color: #000000; font-weight: 600;">{{ article.source }}</span>
|
||||
{% if article.author %}
|
||||
<span> • {{ article.author }}</span>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
<!-- Article Summary -->
|
||||
<p style="margin: 0 0 15px 0; font-size: 15px; line-height: 1.6; color: #333333; text-align: justify;">
|
||||
{{ article.summary }}
|
||||
</p>
|
||||
|
||||
<!-- Read More Links -->
|
||||
{% if article.is_clustered and article.sources %}
|
||||
<!-- Multiple sources -->
|
||||
<p style="margin: 0 0 8px 0; font-size: 13px; color: #666666;">
|
||||
📰 Covered by {{ article.article_count }} sources:
|
||||
</p>
|
||||
<div style="margin: 0;">
|
||||
{% for source in article.sources %}
|
||||
<a href="{{ source.link }}" style="display: inline-block; color: #000000; text-decoration: none; font-size: 13px; font-weight: 600; border-bottom: 2px solid #000000; padding-bottom: 2px; margin-right: 15px; margin-bottom: 8px;">
|
||||
{{ source.name }} →
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% else %}
|
||||
<!-- Single source -->
|
||||
<a href="{{ article.link }}" style="display: inline-block; color: #000000; text-decoration: none; font-size: 14px; font-weight: 600; border-bottom: 2px solid #000000; padding-bottom: 2px;">
|
||||
Read more →
|
||||
</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Article Divider -->
|
||||
{% if not loop.last %}
|
||||
<tr>
|
||||
<td style="padding: 0 40px;">
|
||||
<div style="height: 1px; background-color: #f0f0f0;"></div>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
<!-- Bottom Divider -->
|
||||
<tr>
|
||||
@@ -299,8 +205,8 @@
|
||||
Here's everything in one sentence each:
|
||||
</p>
|
||||
|
||||
{% set all_articles = (trending_articles or []) + (other_articles or []) %}
|
||||
{% for article in all_articles %}
|
||||
{% for section in category_sections %}
|
||||
{% for article in section.articles %}
|
||||
<div style="margin-bottom: 12px; padding-left: 20px; position: relative;">
|
||||
<span style="position: absolute; left: 0; top: 0; color: #667eea; font-weight: 700;">{{ loop.index }}.</span>
|
||||
<p style="margin: 0; font-size: 14px; line-height: 1.5; color: #333333;">
|
||||
@@ -309,6 +215,7 @@
|
||||
</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -355,6 +262,8 @@
|
||||
<p style="margin: 0; font-size: 12px; color: #666666;">
|
||||
<a href="{{ website_link }}" style="color: #999999; text-decoration: none;">Visit Website</a>
|
||||
<span style="color: #444444;"> • </span>
|
||||
<a href="{{ preferences_link }}" style="color: #999999; text-decoration: none;">Manage Preferences</a>
|
||||
<span style="color: #444444;"> • </span>
|
||||
<a href="{{ unsubscribe_link }}" style="color: #999999; text-decoration: none;">Unsubscribe</a>
|
||||
</p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user