MCPcopy Create free account
hub / github.com/nodejs/nodejs.org / getBlogData

Function getBlogData

apps/site/util/blog.ts:76–80  ·  view source on GitHub ↗
(cat: BlogCategory, page?: number)

Source from the content-addressed store, hash-verified

74};
75
76export const getBlogData = (cat: BlogCategory, page?: number): BlogPostsRSC => {
77 const posts = getBlogPosts(cat);
78
79 return page && page >= 1 ? paginateBlogPosts(posts, page) : posts;
80};

Callers 2

WithBlogCrossLinksFunction · 0.90
getBlogCategoryFunction · 0.90

Calls 2

getBlogPostsFunction · 0.85
paginateBlogPostsFunction · 0.85

Tested by

no test coverage detected