Tag blog posts and sign them with a member
Tags are named in every language and made from the page form; the byline is the member who signs a post on the site. The public API sends both, filters posts by tag and lists the tags in use. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
9
public/api-types.d.ts
vendored
9
public/api-types.d.ts
vendored
@@ -165,6 +165,14 @@ export interface PublicPage {
|
||||
unpublish_at?: string;
|
||||
updated_at: string;
|
||||
category: PublicCategory;
|
||||
/**
|
||||
* The ones named in this language, to link to the blog filtered by each.
|
||||
*/
|
||||
tags: ({ name: string; slug: string })[];
|
||||
/**
|
||||
* The member who signs it, when they have a public profile.
|
||||
*/
|
||||
byline?: { name: string; slug: string; headline?: string; avatar?: Image; path: string };
|
||||
alternates: Alternates;
|
||||
path?: string;
|
||||
}
|
||||
@@ -398,6 +406,7 @@ export interface PublicApiPayloads {
|
||||
'/public/v1/slugs': Record<string, ({ id: number; updated_at: string; alternates: Record<string, string> })[]>;
|
||||
'/public/v1/redirects': ({ from: string; to: string; status: 301 | 302; locale?: string })[];
|
||||
'/public/v1/search': PublicSearchResult[];
|
||||
'/public/v1/tags': ({ name: string; slug: string; count: number })[];
|
||||
'/public/v1/projects': PublicProject[];
|
||||
'/public/v1/projects/{slug}': PublicProject;
|
||||
'/public/v1/members': PublicMember[];
|
||||
|
||||
Reference in New Issue
Block a user