Rename content path to landing path

This commit is contained in:
Kamran Ahmed
2021-12-03 14:16:41 +01:00
parent 064f97108e
commit 2ec335edc8
14 changed files with 41 additions and 41 deletions

View File

@@ -33,18 +33,18 @@ function ImageRoadmap(props: RoadmapProps) {
function TextualRoadmap(props: RoadmapProps) {
const { roadmap } = props;
if (!roadmap.contentPath) {
if (!roadmap.landingPath) {
return null;
}
// Remove trailing slashes
const normalizedPath = roadmap.contentPath.replace(/^\//, '');
const RoadmapContent = require(`../../content/${normalizedPath}`).default;
const normalizedPath = roadmap.landingPath.replace(/^\//, '');
const LandingContent = require(`../../content/${normalizedPath}`).default;
return (
<Container maxW={'container.md'} position='relative'>
<MdRenderer>
<RoadmapContent />
<LandingContent />
</MdRenderer>
</Container>
);