1import { useRouter } from "next/router";
2import Head from "next/head";
3import Meta from "../components/Meta";
4import ErrorPage from "../pages/404";
5import Container from "./Container";
6import Header from "./Header";
7import Footer from "./Footer";
8import SingleColumn from "./SingleColumn";
9import Section from "./Section";
10import Markdown from "foundation-design-system";
11import classNames from "classnames";
12import { TableOfContents } from "./TableOfContents";
14export default function BasicPage({ post, markdown, search, index = false }) {
15 const router = useRouter();
16 if (!router.isFallback && !post?.slug) {
22 <title>Urbit • {post.title}</title>
26 <Header search={search} />
31 <div className={classNames("flex", { sidebar: index })}>
32 <div className={classNames("markdown", { "max-w-prose": index })}>
33 <Markdown.render content={JSON.parse(markdown)} />
35 {index && <TableOfContents />}
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list