import { cache, reader } from '@/lib/content/base'

export const getArticles = cache(async () =>
  reader.collections['meta_posts'].all()
)

export const getArticleBySlug = cache(async (slug: string) =>
  reader.collections['meta_posts'].read(slug)
)
