--- import { hasSidebar } from "../content-utils"; import BaseHead from "../components/BaseHead.astro"; import Sidebar from "../components/Sidebar.astro"; const { title, description, image, id, headings } = Astro.props; const sidebar = await hasSidebar(); --- { sidebar ? (
) : null }