AI Newsletter Digest improvements: fixed QP soft line break decoding, URL extraction, and content cleaning

This commit is contained in:
Krilly
2026-03-04 13:29:22 +00:00
parent 29a98137a7
commit 57dd294675
13706 changed files with 2114953 additions and 237629 deletions

View File

@@ -0,0 +1,305 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OpenClaw Daily Digest</title>
<style>
/* Reset styles */
body, table, td, p, a, li, blockquote {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
table, td {
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
}
img {
-ms-interpolation-mode: bicubic;
border: 0;
height: auto;
line-height: 100%;
outline: none;
text-decoration: none;
}
/* Base styles */
body {
margin: 0 !important;
padding: 0 !important;
background-color: #f5f5f5;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
color: #333333;
}
/* Container */
.container {
max-width: 600px;
margin: 0 auto;
background-color: #ffffff;
}
/* Header */
.header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 40px 30px;
text-align: center;
}
.header h1 {
margin: 0;
color: #ffffff;
font-size: 28px;
font-weight: 700;
}
.header .tagline {
color: rgba(255,255,255,0.9);
font-size: 14px;
margin-top: 8px;
}
.header .date {
color: rgba(255,255,255,0.8);
font-size: 12px;
margin-top: 12px;
text-transform: uppercase;
letter-spacing: 1px;
}
/* Section headers */
.section-header {
background-color: #f8f9fa;
padding: 20px 30px;
border-left: 4px solid #667eea;
}
.section-header h2 {
margin: 0;
font-size: 18px;
font-weight: 600;
color: #333333;
}
.section-header .emoji {
font-size: 20px;
margin-right: 8px;
}
/* Story cards */
.stories {
padding: 0 30px;
}
.story-card {
padding: 24px 0;
border-bottom: 1px solid #eeeeee;
}
.story-card:last-child {
border-bottom: none;
}
/* Source badge */
.source-badge {
display: inline-block;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
padding: 4px 10px;
border-radius: 12px;
margin-bottom: 10px;
}
.badge-reddit { background-color: #ff4500; color: white; }
.badge-hackernews { background-color: #ff6600; color: white; }
.badge-github { background-color: #24292e; color: white; }
.badge-news { background-color: #4285f4; color: white; }
.badge-twitter { background-color: #1da1f2; color: white; }
/* Story content */
.story-title {
margin: 0 0 10px 0;
font-size: 17px;
font-weight: 600;
line-height: 1.4;
}
.story-title a {
color: #333333;
text-decoration: none;
}
.story-title a:hover {
color: #667eea;
}
.story-meta {
font-size: 12px;
color: #666666;
margin-bottom: 10px;
}
.story-excerpt {
font-size: 14px;
line-height: 1.6;
color: #555555;
margin: 0;
}
.engagement {
display: inline-block;
font-size: 12px;
color: #888888;
margin-top: 10px;
}
.engagement span {
margin-right: 15px;
}
/* CTA Button */
.cta-button {
display: inline-block;
background-color: #667eea;
color: #ffffff !important;
text-decoration: none;
padding: 12px 24px;
border-radius: 6px;
font-size: 14px;
font-weight: 600;
margin-top: 10px;
}
.cta-button:hover {
background-color: #5568d3;
}
/* Stats summary */
.stats {
background-color: #f8f9fa;
padding: 20px 30px;
text-align: center;
border-top: 1px solid #eeeeee;
}
.stat-item {
display: inline-block;
margin: 0 20px;
text-align: center;
}
.stat-number {
font-size: 24px;
font-weight: 700;
color: #667eea;
}
.stat-label {
font-size: 11px;
color: #888888;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Footer */
.footer {
background-color: #333333;
padding: 30px;
text-align: center;
}
.footer p {
margin: 0;
color: #999999;
font-size: 12px;
}
.footer .brand {
color: #ffffff;
font-size: 14px;
font-weight: 600;
margin-bottom: 8px;
}
.footer a {
color: #667eea;
text-decoration: none;
}
/* Mobile responsiveness */
@media screen and (max-width: 600px) {
.container {
width: 100% !important;
}
.header {
padding: 30px 20px;
}
.header h1 {
font-size: 24px;
}
.section-header, .stories, .stats {
padding-left: 20px;
padding-right: 20px;
}
.story-title {
font-size: 16px;
}
}
</style>
</head>
<body>
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td align="center" style="padding: 20px 0;">
<div class="container">
<!-- Header -->
<div class="header">
<h1>🦀 OpenClaw Daily Digest</h1>
<div class="tagline">Your daily dose of OpenClaw discussions, use cases & news</div>
<div class="date">{{DATE}}</div>
</div>
<!-- Stats Summary -->
<div class="stats">
<div class="stat-item">
<div class="stat-number">{{REDDIT_COUNT}}</div>
<div class="stat-label">Reddit Posts</div>
</div>
<div class="stat-item">
<div class="stat-number">{{NEWS_COUNT}}</div>
<div class="stat-label">News Stories</div>
</div>
<div class="stat-item">
<div class="stat-number">{{TWITTER_COUNT}}</div>
<div class="stat-label">X Threads</div>
</div>
</div>
<!-- Reddit Highlights Section -->
<div class="section-header">
<h2><span class="emoji">🔥</span>Reddit Highlights</h2>
</div>
<div class="stories">
{{REDDIT_STORIES}}
</div>
<!-- News Roundup Section -->
<div class="section-header">
<h2><span class="emoji">📰</span>News Roundup</h2>
</div>
<div class="stories">
{{NEWS_STORIES}}
</div>
<!-- X Threads Section -->
<div class="section-header">
<h2><span class="emoji">𝕏</span>X Threads</h2>
</div>
<div class="stories">
{{TWITTER_STORIES}}
<p style="text-align: center; color: #888; font-size: 14px; padding: 20px 0;">
🚧 X/Twitter integration coming soon - requires API setup
</p>
</div>
<!-- Footer -->
<div class="footer">
<div class="brand">🦀 Krilly the Crab</div>
<p>Daily digest compiled for Anthony Martin</p>
<p style="margin-top: 10px;">
<a href="https://github.com/openclaw/openclaw">OpenClaw on GitHub</a>
<a href="https://reddit.com/r/openclaw">r/OpenClaw</a>
</p>
<p style="margin-top: 15px; font-size: 11px; color: #666;">
Generated at {{GENERATED_AT}} UTC
</p>
</div>
</div>
</td>
</tr>
</table>
</body>
</html>