--- import Layout from '../layouts/base.astro' import Header from '../components/header.astro' import Item from '../components/item.astro' const { SITE_URL } = Astro.locals const { channel, before = true, after = true } = Astro.props const posts = channel.posts ?? [] const beforeCursor = posts[posts.length - 1]?.id const afterCursor = posts[0]?.id // const cursor = +Astro.params.cursor ---
{posts.map((post) => )}
{ before && beforeCursor > 20 ? ( Before ) : (   ) }
{ after && afterCursor ? ( After ) : (   ) }