WIP: c9f5dfc Update 'content/projects/RE-Chess.md'
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import { GetStaticPaths, GetStaticProps } from "next";
|
||||
import fs from "fs";
|
||||
import { ParsedUrlQuery } from "querystring";
|
||||
import { getProjectContentBySlug, PROJECTS_PATH } from "../../utils/markdown";
|
||||
import {
|
||||
getHeadings,
|
||||
getProjectContentBySlug,
|
||||
PROJECTS_PATH,
|
||||
} from "../../utils/markdown";
|
||||
import { MarkdownRenderingResult } from "../../types/types";
|
||||
import { MainLayout } from "../../layouts/MainLayout";
|
||||
import Link from "next/link";
|
||||
@@ -52,6 +56,9 @@ export const getStaticProps: GetStaticProps<MarkdownRenderingResult> = async ({
|
||||
params,
|
||||
}) => {
|
||||
const markdownContent = getProjectContentBySlug(params?.slug as string);
|
||||
|
||||
console.log(getHeadings(markdownContent.content));
|
||||
|
||||
return {
|
||||
props: {
|
||||
frontMatter: markdownContent.frontMatter,
|
||||
|
||||
Reference in New Issue
Block a user