--- import LayoutBase from '@layouts/Base/index.astro' import type { Page } from 'astro' import type { CollectionEntry } from 'astro:content' import PostTeaser from '@components/PostTeaser/index.astro' import Pagination from '@components/Pagination/index.astro' import PhotoTeaser from '@components/PhotoTeaser.astro' type Props = { page: Page> title: string pageTitle: string } const { page, title, pageTitle } = Astro.props const classes = `posts ${ title && title !== '' && title.toLowerCase().includes('photos') ? 'photos' : '' }` ---
{ page?.data?.map((post) => post.collection === 'photos' ? ( ) : ( ) ) }
{ page.currentPage && ( ) }