style: final consistency pass — theme, responsive, animations

This commit is contained in:
2026-06-01 20:36:42 -05:00
parent 533c166f3b
commit 274217c77f
4 changed files with 19 additions and 7 deletions

View File

@@ -3,7 +3,7 @@ import path from 'path'
import matter from 'gray-matter'
import { compileMDX } from 'next-mdx-remote/rsc'
import { cache } from 'react'
import { useMDXComponents } from '@/mdx-components'
import { useMDXComponents as getMDXComponents } from '@/mdx-components'
import remarkMath from 'remark-math'
import remarkGfm from 'remark-gfm'
import rehypeKatex from 'rehype-katex'
@@ -58,7 +58,7 @@ export const getPost = async (slug: string): Promise<Post | null> => {
const filePath = path.join(postsDirectory, file)
const raw = await fs.readFile(filePath, 'utf8')
const { data, content } = matter(raw)
const components = useMDXComponents({})
const components = getMDXComponents({})
const { content: compiledContent } = await compileMDX({
source: content,