chore: final layout
This commit is contained in:
@@ -3,8 +3,8 @@ import { readFile } from "fs/promises";
|
||||
import { bundleMDX } from "mdx-bundler";
|
||||
import codeHikeTheme from "shiki/themes/one-dark-pro.json";
|
||||
|
||||
export const getMdxFile = async (path: string) => {
|
||||
const source = await readFile(path);
|
||||
export const getMdxFile = async (fileName: string) => {
|
||||
const source = await readFile(`posts/${fileName}`);
|
||||
return bundleMDX({
|
||||
source: source.toString(),
|
||||
mdxOptions() {
|
||||
|
Reference in New Issue
Block a user