import type { NextPage } from "next"; import Head from "next/head"; import type { ContentList } from "../lib/content/types"; import Navigation from "../components/Blog/Navigation"; import ProjectCard from "../components/Blog/Card"; import styles from "../styles/Blog/Front.module.scss"; const Blog: NextPage<{ content: ContentList }> = ({content}) => { const generateCards = (type: string) => { return
{content.filter(p => p.type === type).map(p => )}
; }; return <> c0ntroller.de

Hello there!

Miaumiau Lorem ipsum

Projects

{ generateCards("project") }

Diaries

{ generateCards("diary") }
; }; export async function getServerSideProps() { const url = process.env.BASE_URL || "https://c0ntroller.de"; const res = await fetch(`${url}/content/list.json`); const content = await res.json(); return { props: { content } }; } export default Blog;