--- import BaseHead from '../../components/BaseHead.astro'; import Header from '../../components/Header.astro'; import Main from '../../components/Main.astro'; import Footer from '../../components/Footer.astro'; import { SITE_TITLE, SITE_DESCRIPTION } from '../../consts'; import { getCollection } from 'astro:content'; import Showcase from '../../components/Showcase.astro'; import { convertPost } from '../../models/Post'; const posts: Post[] = (await getCollection('blog')).map(convertPost).sort( (a, b) => b.pubDate.valueOf() - a.pubDate.valueOf(), ); ---
{posts.length === 0 ? (

No posts yet 😛

) : ( )}