The code and data behind xeiaso.net
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

filter non-indexed posts from blog view

Signed-off-by: Xe Iaso <me@xeiaso.net>

Xe Iaso 6e3143a5 ba25894b

+11 -9
+11 -9
lume/src/blog.jsx
··· 15 15 </p> 16 16 17 17 <ul class="list-disc ml-4 mb-4"> 18 - {search.pages("type=blog", "order date=desc").map((post) => { 19 - const url = post.redirect_to ? post.redirect_to : post.url; 20 - return ( 21 - <li> 22 - <time datetime={date(post.date)} className="font-mono">{post.date.toLocaleDateString("en-US", dateOptions)}</time> -{" "} 23 - <a href={url}>{post.title}</a> 24 - </li> 25 - ); 26 - })} 18 + {search.pages("type=blog", "order date=desc") 19 + .filter((post) => post.index) 20 + .map((post) => { 21 + const url = post.redirect_to ? post.redirect_to : post.url; 22 + return ( 23 + <li> 24 + <time datetime={date(post.date)} className="font-mono">{post.date.toLocaleDateString("en-US", dateOptions)}</time> -{" "} 25 + <a href={url}>{post.title}</a> 26 + </li> 27 + ); 28 + })} 27 29 </ul> 28 30 </> 29 31 );