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 { decode } from "html-entities";
11import { TableOfContents } from "./TableOfContents";
13export default function PageWithIndex({ post, markdown, search }) {
14 const router = useRouter();
15 if (!router.isFallback && !post?.slug) {
21 <title>Urbit • {post.title}</title>
25 <Header search={search} />
30 <div className="flex sidebar">
32 className={"markdown pr-0 lg:pr-16"}
33 dangerouslySetInnerHTML={{ __html: decode(markdown) }}
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