chore: final layout

This commit is contained in:
Andrea
2023-03-07 12:10:29 +01:00
parent 0fc8c40fed
commit a844ec9845
11 changed files with 61 additions and 33 deletions

View File

@@ -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() {