1import Link from "next/link";
2import { Card } from "@urbit/foundation-design-system";
3import { formatDate, generateDisplayDate } from "../lib/lib";
5export default function PostPreview(props) {
6 const section = props?.section ? props.section : "blog";
8 const date = generateDisplayDate(props.post.date);
11 slug={`/${section}/${props.post.slug}`}
12 image={props.post.extra.image}
13 title={props?.title || props.post?.title || ""}
14 author={props.post?.extra?.author || ""}
15 ship={props.post?.extra?.ship || ""}
17 <div className="text-wall-500 type-sub mt-1">{formatDate(date)}</div>
23PostPreview.defaultProps = {
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