Skip to content

Commit 8b982fb

Browse files
Copilotpethers
andcommitted
Add Economist-style tagline to news articles
Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
1 parent 2d739d1 commit 8b982fb

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

scripts/article-template.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ ${ALL_LANG_CODES.map(l => ` <link rel="alternate" hreflang="${l === 'no' ? 'nb'
323323
No embedded CSS needed - promotes consistency and maintainability. -->
324324
<article class="news-article">
325325
<header class="article-header">
326+
<div class="site-tagline">Latest news and analysis from Sweden's Riksdag. The Economist-style political journalism covering parliament, government, and agencies with systematic transparency.</div>
326327
<h1>${title}</h1>
327328
<div class="article-meta">
328329
<time datetime="${isoDate}">${formattedDate}</time>

styles.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9035,3 +9035,15 @@ body.news-page {
90359035
display: none;
90369036
}
90379037
}
9038+
9039+
/* Site Tagline for News Articles */
9040+
.news-article .site-tagline {
9041+
font-size: 0.85rem;
9042+
color: var(--text-secondary, #6c757d);
9043+
text-transform: uppercase;
9044+
letter-spacing: 0.5px;
9045+
margin-bottom: 1rem;
9046+
padding-bottom: 0.75rem;
9047+
border-bottom: 1px solid var(--border-color, #e9ecef);
9048+
font-weight: 500;
9049+
}

0 commit comments

Comments
 (0)