import { useRouter } from "next/router"; import Link from "next/link"; import Head from "next/head"; import Meta from "../Meta"; import ErrorPage from "../../pages/404"; import classnames from "classnames"; import { Container, SingleColumn, Section, Markdown, IntraNav, } from "foundation-design-system"; import Header from "../Header"; import Footer from "../Footer"; export default function BasicPage({ section, post, markdown, search, children, }) { const router = useRouter(); if (!router.isFallback && !post?.slug) { return ; } return ( {post.title} • {section} • Urbit {Meta(post)}

{post.title}

{section.slice(0, -1)}

{/* General purpose metadata bar -- podcast listen button is special-cased URL, flexed at the end of the row */}
{post?.podcast && (

Podcast

{post.podcast}

)} {post?.date && (

Date

{post.date}

)} {post?.URL && section !== "Podcasts" && ( )}
{post?.URL && section === "Podcasts" && ( )}
{children}