From f6340a89b32a2e51640704a972bf041c32990635 Mon Sep 17 00:00:00 2001 From: Mieszko Makuch Date: Tue, 28 Jul 2026 20:06:49 +0200 Subject: [PATCH] article meta: inline icons (tag/author/date/read-time) in the existing .ico stroke family --- src/pages/news/[slug].astro | 7 ++++++- src/styles/global.css | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pages/news/[slug].astro b/src/pages/news/[slug].astro index 3a4c198..192d1a3 100644 --- a/src/pages/news/[slug].astro +++ b/src/pages/news/[slug].astro @@ -32,7 +32,12 @@ const readMin = Math.max(1, Math.round((post.body ?? '').split(/\s+/).length / 2

{post.data.title}

{post.data.description}

{/* Meta — one quiet muted line: category · author · date · reading time */} -
{post.data.category}·{post.data.author}··{readMin} min read
+
+ {post.data.category}· + {post.data.author}· + · + {readMin} min read +
{post.data.cover && } {/* TOC sits between lead image and body (Wikipedia/GOV.UK contents position): the press head above stays unbroken, and the list is diff --git a/src/styles/global.css b/src/styles/global.css index 53bb578..5034d8d 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -505,6 +505,9 @@ span.page-step { color: var(--muted); } /* disabled end stop — non-interactive display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--muted); font-size: var(--fs-s); margin-bottom: var(--space-l); } +/* Icon-prefixed meta items (tag / author / date / read time) */ +.article .meta > :is(span, time) { display: inline-flex; align-items: center; gap: 5px; } +.article .meta .ico { width: 15px; height: 15px; stroke-width: 1.8; } /* Lead image — borderless, breaking slightly out of the text column on wide screens (editorial breakout; the column stays 70ch for reading) */ .article .cover { border-radius: var(--radius); margin-bottom: var(--space-l); }