feat(blog): PostRow accepts searchText, emits data-search

This commit is contained in:
Josh Bairstow 2026-06-02 00:08:25 +10:00
parent 9e8dfaedb7
commit cc04ea7753

View file

@ -5,12 +5,13 @@ interface Props {
href: string;
deck?: string;
tag?: string;
searchText: string;
}
const { date, title, href, deck, tag } = Astro.props;
const { date, title, href, deck, tag, searchText } = Astro.props;
---
<a class="postrow" href={href}>
<a class="postrow" href={href} data-search={searchText}>
<span class="pdate">{date}</span>
<span class="middle">
<span class="pttl">{title}<span class="tick"></span></span>