diff --git a/src/components/molecules/BlogSearch.astro b/src/components/molecules/BlogSearch.astro index e39a11d..c694e11 100644 --- a/src/components/molecules/BlogSearch.astro +++ b/src/components/molecules/BlogSearch.astro @@ -1,3 +1,82 @@ --- -// Stub — real implementation lands in Task 4. +// Light client-side filter for the blog archive. +// Reads [data-search] attributes on rows + the featured article, hides +// non-matches, collapses empty year heads, toggles a no-results message. +// Filter script is added in Task 5; this file ships markup + styles only. --- + +
+ + +
+ + diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index 9fa00a2..14329fc 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -78,6 +78,8 @@ for (const post of posts) {

+ + { featured && (
@@ -125,6 +127,10 @@ for (const post of posts) { )) } + +