You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add news article styles to styles.css and update workflow to use external CSS
- Added comprehensive "News Article Styles" section to styles.css
* .news-article, .article-header, .article-meta styles
* .lede (lead paragraph with left border)
* .context-box, .watch-section styles
* .event-calendar (for Week Ahead articles)
* .article-footer, .article-sources styles
* Responsive design for mobile devices
- Updated .github/workflows/news-evening-analysis.md
* Added explicit requirement to use external styles.css
* Added complete HTML template with proper structure
* Documented all available CSS classes
* Included style guide: "Latest news and analysis from Sweden's Riksdag. The Economist-style political journalism covering parliament, government, and agencies with systematic transparency."
* Removed embedded CSS instructions
- Added CSS validation tests to tests/news-evening-analysis.test.js
* Test ensures articles use <link rel="stylesheet" href="../styles.css">
* Test ensures NO embedded <style> tags
* Test validates Economist-style journalism standards
* 32 total tests (31 passing, 1 expected to fail on old articles)
✅ Future generated articles will use centralized CSS
✅ Easier maintenance and consistent styling across all articles
✅ Reduced file sizes (no 438-line embedded CSS blocks)
Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
@@ -176,46 +176,126 @@ Structure the analysis around these editorial pillars:
176
176
177
177
**Article Type:**`analysis`
178
178
179
+
**HTML Template Requirements:**
180
+
-**MUST** use `<link rel="stylesheet" href="../styles.css">` - NO embedded `<style>` tags
181
+
- Follow "Latest news and analysis from Sweden's Riksdag. The Economist-style political journalism covering parliament, government, and agencies with systematic transparency."
182
+
- Include proper meta tags, Open Graph, Twitter Card, and Schema.org structured data
183
+
- Use semantic HTML5 structure with `<article>`, `<header>`, `<section>`, `<footer>`
0 commit comments