From 7fe09f077ab1832d5894eefc411ae7b249de6566 Mon Sep 17 00:00:00 2001 From: Wesley Ray Date: Wed, 15 Jul 2026 15:42:47 -0400 Subject: [PATCH] Header slot: random reading highlight per page view Pulled client-side from /highlights/random (max_len=280); attribution from the API's parsed title/author; hidden when the API is unreachable. Co-Authored-By: Claude Opus 4.8 --- src/layouts/Base.astro | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index f8d56cd..1ea16e2 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -33,6 +33,10 @@ const showToc = headings.filter((h) => h.depth <= 3).length >= 2;
{!isHome && } +
@@ -72,6 +76,25 @@ const showToc = headings.filter((h) => h.depth <= 3).length >= 2; }
+ +