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

@ -15,9 +15,9 @@ const roadmapsMeta = roadmapDirs.reduce((metaAcc, roadmapDirName) => {
// We can't use the absolute path in the build e.g. ~/Users/user/where-build-is-running/content
// So, we remove it and use the path relative to content directory
let contentPath = roadmapMeta.contentPath;
if (contentPath) {
contentPath = path.join(roadmapDir.replace(STORAGE_PATH, ''), roadmapMeta.contentPath);
let landingPath = roadmapMeta.landingPath;
if (landingPath) {
landingPath = path.join(roadmapDir.replace(STORAGE_PATH, ''), roadmapMeta.landingPath);
}
let resourcesPath = roadmapMeta.resourcesPath;
@ -36,7 +36,7 @@ const roadmapsMeta = roadmapDirs.reduce((metaAcc, roadmapDirName) => {
{
...roadmapMeta,
id: roadmapSlug,
contentPath: contentPath,
landingPath: landingPath,
resourcesPath: resourcesPath,
metaPath: metaPath,
isUpcoming: roadmapMeta.isUpcoming || false