--- import Layout from "~/layouts/PageLayout.astro"; import { SITE } from "~/config.mjs"; import { getAllPosts } from "~/utils/getAllPosts"; import BlogPostCard from "~/components/widgets/BlogPostCard.astro"; import Pagination from "~/components/widgets/Pagination.astro"; export async function getStaticPaths({ paginate }) { const posts = await getAllPosts(); return paginate(posts, { pageSize: SITE.postsPerPage, }); } const { page } = Astro.props; const currentPage = page.currentPage ?? 1; const title = `Blog ${currentPage > 1 ? `— Page ${currentPage} ` : ""}— ${ SITE.name }`; const description = "News and step-by-step guides about AstroWind"; const canonical = new URL(page.url.current, Astro.site); ---

News and step-by-step guides about AstroWind

    { page.data.map((post) => (
  • )) }
{ (page.url.prev || page.url.next) && ( ) }