Files
ash-pages/news/index.html
T
ash-bot 3515e88dca fix: add <base href=/ash/> to all HTML pages
Site served at ogle.fyi/ash/ via Traefik strip-prefix middleware.
Without base tag, relative links resolve to ogle.fyi/workout/ (404).
With base tag, links resolve correctly to /ash/workout/ etc.

Also fixed both template files for future generated pages.
2026-04-13 08:29:56 -07:00

54 lines
2.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<base href="/ash/">
<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>