From 64e02e00ee2e8a4f51f185b3e7d66c32484ccb25 Mon Sep 17 00:00:00 2001 From: Jeffrey Hales Date: Thu, 11 Jun 2026 14:28:24 -0700 Subject: [PATCH] feat(library): restore live-site intro copy above post listings - add the two live intro paragraphs between the hero and article grid - keep the library listing cards in the live two-column layout - restore the 4:3 cropped article thumbnails and card spacing via library-scoped selectors - avoid leaking the card-grid overrides into unrelated pages --- www/src/layouts/BlogIndexLayout.astro | 9 +++++++-- www/src/pages/library/index.astro | 9 ++++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/www/src/layouts/BlogIndexLayout.astro b/www/src/layouts/BlogIndexLayout.astro index 5a92b37..3fec211 100644 --- a/www/src/layouts/BlogIndexLayout.astro +++ b/www/src/layouts/BlogIndexLayout.astro @@ -1,13 +1,18 @@ --- import BaseLayout from './BaseLayout.astro'; import PageHero from '../components/PageHero.astro'; -const { title, description, lang = 'en' } = Astro.props; +const { title, description, intro = [], lang = 'en' } = Astro.props; const languagePrefix = lang === 'en' ? '' : `/${lang}`; const canonical = `https://www.azinstitute4autism.com${languagePrefix}/library`; --- -

Library

{description}

+
+
+

Library

+ {intro.length ? intro.map((paragraph) =>

{paragraph}

) :

{description}

} +
+
diff --git a/www/src/pages/library/index.astro b/www/src/pages/library/index.astro index 2557099..2918c82 100644 --- a/www/src/pages/library/index.astro +++ b/www/src/pages/library/index.astro @@ -5,7 +5,14 @@ import BlogCard from '../../components/BlogCard.astro'; const posts = (await getCollection('blog', ({ data }) => data.lang === 'en' && !data.draft)).sort((a, b) => b.data.date.valueOf() - a.data.date.valueOf()); const popular = posts.slice(0, 5); --- - +
{posts.map((post) => )}