My first post

2023-Oct-10

blog image cover

This is my first post. I will write about my journey in this blog. I hope you enjoy it. I will write daily about my journey.


# Hello my first post!

foobarNumber
bazbim1
bazbim2
bazbim3
export const allBlogsMeta = () => {
  const files = readdirSync(blogDirectory);
  const mdxFiles = files.filter(file => file.endsWith('.mdx'));

  const parsedBlogs = mdxFiles.map(file => {
    const slug = file.replace('.mdx', '');

    const markdownWithMetadata = readFileSync(
      path.join(blogDirectory, file),
    ).toString();

    const { data } = matter(markdownWithMetadata);

    return {
      slug,
      data,
    };
  });

  return sortBlogsByDate(parsedBlogs);
};