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, group, 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" && ( Website {post.URL.slice(post.URL.indexOf("://") + 3)} )} {(group || post?.group) && ( Group {group?.title || post.group} )} {post?.URL && section === "Podcasts" && ( Listen )} {children} ); }
{section.slice(0, -1)}
Podcast
{post.podcast}
Date
{post.date}
Website
Group