diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-05-02 14:33:52 -0500 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-05-02 14:33:52 -0500 |
| commit | fbdf8daa684a6e794001adf1fbcf4c94bc9c8741 (patch) | |
| tree | aaa9ec72749f5a6965b43aa8dce923b0fe8e49eb | |
| parent | eddb56e72459a5514b85db3d48099deea5939c2f (diff) | |
| download | xesite-fbdf8daa684a6e794001adf1fbcf4c94bc9c8741.tar.xz xesite-fbdf8daa684a6e794001adf1fbcf4c94bc9c8741.zip | |
fuck
Signed-off-by: Xe Iaso <me@xeiaso.net>
| -rw-r--r-- | lume/src/talks.jsx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lume/src/talks.jsx b/lume/src/talks.jsx index c103aff..8375684 100644 --- a/lume/src/talks.jsx +++ b/lume/src/talks.jsx @@ -7,12 +7,14 @@ export default ({ search }, { date }) => { <h1 className="text-3xl mb-4">{title}</h1> <ul class="list-disc ml-4 mb-4"> - {search.pages("layout=talk.njk,index=true", "order date=desc").map((post) => ( - <li> - <time datetime={date(post.date)}>{date(post.date, "DATE_US")}</time> -{" "} - <a href={post.url}>{post.title}</a> - </li> - ))} + {search.pages("layout=talk.njk", "order date=desc") + .filter(post => post.index) + .map((post) => ( + <li> + <time datetime={date(post.date)}>{date(post.date, "DATE_US")}</time> -{" "} + <a href={post.url}>{post.title}</a> + </li> + ))} </ul> </> ); |
