--- import { config } from "../config"; import { getDocs } from "../utils"; const docs = await getDocs(); const { id, headings } = Astro.props; ---
🐶
{config.SITE_NAME}
{ docs.map((category) => (
{category.category ? (

{category.category[0].toUpperCase() + category.category.slice(1)}

) : null}
{category.docs.map((doc) => (
{doc.data.title} {id === doc.id ? (
) : null} {id === doc.id ? (
{headings.map( (heading: { depth: number; text: string; slug: string }) => heading.depth === 2 && ( {heading.text} ) )}
) : null}
))}
{category.category ? (
) : null}
)) }