Project layout:
import Layout from '../../layouts/Layout.astro';
import { getCollection, CollectionEntry } from "astro:content";
// What this does?
export const getStaticPaths = async () => {
const projects = await getCollection("projects")
const paths = projects.map(project => {
return {
params: {
slug: project.slug
},
props: {
project
}
}
})
return paths
}
type Props = {
project: CollectionEntry<"projects">
}
const { project } = Astro.props;
const { Content } = await project.render()
<Layout title={project.data.projectName}>
<main>
<h1 class="text-3xl text-black">{project.data.name}</h1>
<p>{project.body}</p>
</main>
</Layout>
Project MD:
name: e c h o boomer
github: https://www.echoboomer.info/
image: ./images/echo-boomer/echo-boomer.jpg
techstack: html, css
Introduction
e c h o boomer is a seven piece Space Pop/Jazz band led by bassist Beate Wiesinger. The term „echoboomer“ refers to sociology and actually describes the generation born between 1970
Headings are not displaying within my layout, how to fix it?