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:
Zaldimmar 2026-09-29 22:15:18 -05:00
parent f797e2c509
commit 7876e060e7
5 changed files with 45 additions and 1 deletions

View file

@ -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),
},
});
});