Added SEO to Contributors, Contributor, User Guide (+ each of it's pages), Changelog, OSS friends: titles, descriptions Co-authored-by: Ady Beraud <a.beraud96@gmail.com>
7 lines
251 B
TypeScript
7 lines
251 B
TypeScript
import { getPost } from '@/app/_server-utils/get-posts';
|
|
|
|
export async function fetchArticleFromSlug(slug: string, basePath: string) {
|
|
const effectiveSlug = slug && slug.length > 0 ? slug : 'home';
|
|
return await getPost(effectiveSlug, basePath);
|
|
}
|