news: add briefing page template and index
This commit is contained in:
@@ -0,0 +1,53 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>📰 News Briefings</title>
|
||||||
|
<style>
|
||||||
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||||
|
body {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||||
|
background: #0f0f0f;
|
||||||
|
color: #e0e0e0;
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 40px 20px;
|
||||||
|
}
|
||||||
|
.container { max-width: 800px; width: 100%; }
|
||||||
|
h1 { font-size: 1.8rem; margin-bottom: 8px; color: #f97316; }
|
||||||
|
.breadcrumb { color: #666; margin-bottom: 24px; font-size: 0.85rem; }
|
||||||
|
.breadcrumb a { color: #888; text-decoration: none; }
|
||||||
|
.breadcrumb a:hover { color: #f97316; }
|
||||||
|
.day { margin-bottom: 16px; padding: 14px 18px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; }
|
||||||
|
.day a { color: #e0e0e0; text-decoration: none; font-size: 1rem; }
|
||||||
|
.day a:hover { color: #f97316; }
|
||||||
|
.day .date { color: #888; font-size: 0.85rem; margin-top: 4px; }
|
||||||
|
.footer { color: #555; font-size: 0.75rem; margin-top: 32px; text-align: center; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<div class="breadcrumb"><a href="/ash/">ash-pages</a></div>
|
||||||
|
<h1>📰 News Briefings</h1>
|
||||||
|
<div id="briefings"></div>
|
||||||
|
<div class="footer">Generated by Ash</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
// Auto-list .html files by scanning known dates (last 14 days)
|
||||||
|
const briefings = document.getElementById('briefings');
|
||||||
|
const today = new Date();
|
||||||
|
for (let i = 0; i < 14; i++) {
|
||||||
|
const d = new Date(today);
|
||||||
|
d.setDate(d.getDate() - i);
|
||||||
|
const dateStr = d.toISOString().slice(0, 10);
|
||||||
|
const dayName = d.toLocaleDateString('en-US', { weekday: 'long', month: 'short', day: 'numeric' });
|
||||||
|
const div = document.createElement('div');
|
||||||
|
div.className = 'day';
|
||||||
|
div.innerHTML = `<a href="${dateStr}.html">${dayName}</a><div class="date">${dateStr}</div>`;
|
||||||
|
briefings.appendChild(div);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device=device-width, initial-scale=1.0">
|
||||||
|
<title>News Briefing — {{DATE}}</title>
|
||||||
|
<style>
|
||||||
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||||
|
body {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||||
|
background: #0f0f0f;
|
||||||
|
color: #e0e0e0;
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 40px 20px;
|
||||||
|
}
|
||||||
|
.container { max-width: 800px; width: 100%; }
|
||||||
|
h1 { font-size: 1.8rem; margin-bottom: 4px; color: #f97316; }
|
||||||
|
.breadcrumb { color: #666; margin-bottom: 24px; font-size: 0.85rem; }
|
||||||
|
.breadcrumb a { color: #888; text-decoration: none; }
|
||||||
|
.breadcrumb a:hover { color: #f97316; }
|
||||||
|
.date-header { color: #888; font-size: 0.9rem; margin-bottom: 24px; }
|
||||||
|
.story { margin-bottom: 28px; padding: 20px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; }
|
||||||
|
.story h2 { font-size: 1.1rem; margin-bottom: 8px; }
|
||||||
|
.story h2 a { color: #e0e0e0; text-decoration: none; }
|
||||||
|
.story h2 a:hover { color: #f97316; }
|
||||||
|
.story .meta { color: #888; font-size: 0.8rem; margin-bottom: 10px; }
|
||||||
|
.story .summary { color: #ccc; font-size: 0.95rem; line-height: 1.6; }
|
||||||
|
.story .tags { margin-top: 10px; }
|
||||||
|
.tag { display: inline-block; background: rgba(249,115,22,0.15); color: #f97316; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; margin-right: 4px; }
|
||||||
|
.footer { color: #555; font-size: 0.75rem; margin-top: 32px; text-align: center; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<div class="breadcrumb"><a href="/ash/news/">📰 News</a></div>
|
||||||
|
<h1>Morning Briefing</h1>
|
||||||
|
<div class="date-header">{{DATE}}</div>
|
||||||
|
{{STORIES}}
|
||||||
|
<div class="footer">Generated by Ash · {{TIMESTAMP}}</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user