List a person's blog posts on their page
A Blog posts section, the same cards as the Community blog, for the published and listed posts they're an author of. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f797e2c509
commit
7876e060e7
5 changed files with 45 additions and 1 deletions
|
|
@ -22,6 +22,7 @@
|
|||
import { Hono } from "hono";
|
||||
|
||||
import { asBool, json, loadOwned, marks, paragraphs, splitLinks } from "../shape.js";
|
||||
import { postsBy } from "./blog.js";
|
||||
|
||||
const people = new Hono();
|
||||
|
||||
|
|
@ -284,6 +285,8 @@ people.get("/people/:id", (c) => {
|
|||
roles,
|
||||
events: [...byEvent.values()],
|
||||
awards,
|
||||
// Blog posts they wrote (published and listed).
|
||||
posts: postsBy(db, id),
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue