5} from "@urbit/foundation-design-system";
7export default function PostPreview(props) {
8 const section = props?.section ? props.section : "blog";
10 const date = generateDisplayDate(props.post.date);
13 slug={`/${section}/${props.post.slug}`}
14 image={props.post.extra.image}
15 title={props?.title || props.post?.title || ""}
16 author={props.post?.extra?.author || ""}
17 ship={props.post?.extra?.ship || ""}
19 <div className="text-wall-500 type-sub mt-1">{formatDate(date)}</div>
25PostPreview.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