feat(blog): PostRow accepts searchText, emits data-search
This commit is contained in:
parent
9e8dfaedb7
commit
cc04ea7753
1 changed files with 3 additions and 2 deletions
|
|
@ -5,12 +5,13 @@ interface Props {
|
||||||
href: string;
|
href: string;
|
||||||
deck?: string;
|
deck?: string;
|
||||||
tag?: 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="pdate">{date}</span>
|
||||||
<span class="middle">
|
<span class="middle">
|
||||||
<span class="pttl">{title}<span class="tick"></span></span>
|
<span class="pttl">{title}<span class="tick"></span></span>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue