feat(blog): redesign post detail experience
Some checks failed
Frontend CI/CD / build (push) Has been cancelled
Frontend CI/CD / deploy (push) Has been cancelled

This commit is contained in:
2026-06-10 11:56:21 +03:30
parent 0d01933f9d
commit 7ddc6b158d
4 changed files with 402 additions and 163 deletions

View File

@@ -89,6 +89,16 @@ export async function getPublicPost(slug: string) {
});
}
export async function getRecommendedPosts(slug: string, limit = 3) {
return requestJson<Types.PostListSchema[]>(
`/api/blog/posts/${encodeURIComponent(slug)}/recommended`,
{
params: { limit },
revalidate: DEFAULT_REVALIDATE_SECONDS,
},
);
}
export async function getPublicEvents(options?: { search?: string; limit?: number }) {
const search = options?.search?.trim();