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
|
|
@ -11,6 +11,7 @@
|
|||
* hrefs.ts has already logged the component that produced it.
|
||||
*/
|
||||
|
||||
import type { BlogPostSummary } from './useBlog.ts'
|
||||
import { detailPath } from './hrefs.ts'
|
||||
import { useRecord, type Resource } from './useRecord.ts'
|
||||
import type { EventType } from './eventTypes.ts'
|
||||
|
|
@ -356,6 +357,8 @@ export type PersonRecord = {
|
|||
roles: PersonRole[]
|
||||
events: PersonEvent[]
|
||||
awards: PersonAward[]
|
||||
/** Blog posts they wrote, newest first. */
|
||||
posts: BlogPostSummary[]
|
||||
}
|
||||
|
||||
export const usePerson = (id?: string): Resource<PersonRecord> =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue