message: refactor(blog): improve layout selection
diff: @@ -6,10 +6,21 @@ const MDXLayout = dynamic(() => import("layouts/mdx"))
  export default function DefaultLayout({ children, frontMatter }) {
  const { slug } = frontMatter
  -
  - if (slug.startsWith("/guides") || slug.startsWith("/docs")) {
  - return <MDXLayout frontmatter={frontMatter}>{children}</MDXLayout>
  + const layoutMap = {
  + "/guides": <MDXLayout frontmatter={frontMatter}>{children}</MDXLayout>,
  + "/docs": <MDXLayout frontmatter={frontMatter}>{children}</MDXLayout>,
  + "/blog": (
  + <MDXLayout frontmatter={frontMatter} isBlog>
  + {children}
  + </MDXLayout>
  + ),
  + default: (
  + <PageContainer frontmatter={frontMatter}>{children}</PageContainer>
  + ),
  }
  + const specialLayout = Object.entries(layoutMap).find(([path, _component]) =>
  + String(slug).startsWith(path),
  + )
  - return <PageContainer frontmatter={frontMatter}>{children}</PageContainer>
  + return specialLayout ?? layoutMap.default
  }
  