MCPcopy Index your code
hub / github.com/simstudioai/sim / getAllPostMeta

Function getAllPostMeta

apps/sim/lib/blog/registry.ts:99–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97}
98
99export async function getAllPostMeta(): Promise<BlogMeta[]> {
100 return (await scanFrontmatters()).filter((p) => !p.draft)
101}
102
103export const getNavBlogPosts = cache(
104 async (): Promise<Pick<BlogMeta, 'slug' | 'title' | 'ogImage'>[]> => {

Callers 10

sitemapFunction · 0.90
BlogIndexFunction · 0.90
GETFunction · 0.90
GETFunction · 0.90
generateStaticParamsFunction · 0.90
generateMetadataFunction · 0.90
AuthorPageFunction · 0.90
registry.tsFile · 0.85
getAllTagsFunction · 0.85
getRelatedPostsFunction · 0.85

Calls 1

scanFrontmattersFunction · 0.85

Tested by

no test coverage detected