|
|
|
@ -1,9 +1,9 @@ |
|
|
|
|
--- |
|
|
|
|
import Breadcrumbs from '../components/Breadcrumbs.astro'; |
|
|
|
|
import MarkdownContent from '../components/MarkdownContent/MarkdownContent.astro'; |
|
|
|
|
import RoadmapBanner from '../components/RoadmapBanner.astro'; |
|
|
|
|
import BaseLayout from '../layouts/BaseLayout.astro'; |
|
|
|
|
import { getTopicFiles, TopicFileType } from '../lib/topic'; |
|
|
|
|
import '../styles/prism.css'; |
|
|
|
|
|
|
|
|
|
export async function getStaticPaths() { |
|
|
|
|
const topicPathMapping = await getTopicFiles(); |
|
|
|
@ -20,11 +20,13 @@ const { file, breadcrumbs, roadmapId, roadmap } = Astro.props as TopicFileType; |
|
|
|
|
|
|
|
|
|
<BaseLayout title="What is this"> |
|
|
|
|
<RoadmapBanner roadmapId={roadmapId} roadmap={roadmap} /> |
|
|
|
|
<div class="bg-gray-50"> |
|
|
|
|
<Breadcrumbs breadcrumbs={breadcrumbs} roadmapId={roadmapId} /> |
|
|
|
|
|
|
|
|
|
<MarkdownContent> |
|
|
|
|
<div class="container pb-16 prose prose-p:mt-0 prose-h1:mb-4"> |
|
|
|
|
<main id="main-content"> |
|
|
|
|
<file.Content /> |
|
|
|
|
</main> |
|
|
|
|
</MarkdownContent> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</BaseLayout> |
|
|
|
|