markdown features
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
rei
2022-12-30 14:14:05 +01:00
parent e545a596ec
commit d397503c66
13 changed files with 651 additions and 95 deletions

View File

@@ -1,24 +1,15 @@
import { GetServerSideProps } from "next";
import { MainLayout } from "../../layouts/MainLayout";
import { Post, getAllProjectsFrontMatter } from "../../utils/markdown";
import { FrontMatter } from "../../types/types";
import Link from "next/link";
import { formatDate } from "../../utils/general";
export interface BasicProjectProps extends FrontMatter {
title: string;
description: string;
date: string;
author: string;
authorLink: string;
thumbnail: string;
}
import { BasicArticleProps } from "../../components/PostHeader";
const ProjectCard = ({
project,
slug,
}: {
project: BasicProjectProps;
project: BasicArticleProps;
slug: string;
}) => {
return (
@@ -55,7 +46,7 @@ const Projects = ({ posts }: { posts: Post[] }) => {
{posts.map((post, index) => (
<ProjectCard
key={index}
project={post.frontMatter as BasicProjectProps}
project={post.frontMatter as BasicArticleProps}
slug={post.slug}
/>
))}