mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-09-03 06:12:53 +02:00
chore: add short title
This commit is contained in:
committed by
Kamran Ahmed
parent
0a4d6871db
commit
20c1a54198
@@ -30,6 +30,7 @@ export async function GET() {
|
|||||||
id: roadmap.id,
|
id: roadmap.id,
|
||||||
url: `/${roadmap.id}`,
|
url: `/${roadmap.id}`,
|
||||||
title: roadmap.frontmatter.briefTitle,
|
title: roadmap.frontmatter.briefTitle,
|
||||||
|
shortTitle: roadmap.frontmatter.title,
|
||||||
description: roadmap.frontmatter.briefDescription,
|
description: roadmap.frontmatter.briefDescription,
|
||||||
group: 'Roadmaps',
|
group: 'Roadmaps',
|
||||||
metadata: {
|
metadata: {
|
||||||
@@ -53,6 +54,7 @@ export async function GET() {
|
|||||||
id: beginnerId,
|
id: beginnerId,
|
||||||
url: `/${parentId}?r=${beginnerId}`,
|
url: `/${parentId}?r=${beginnerId}`,
|
||||||
title: `${parentMeta.title} Beginner`,
|
title: `${parentMeta.title} Beginner`,
|
||||||
|
shortTitle: `${parentMeta.shortTitle} Beginner`,
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
.filter(Boolean);
|
.filter(Boolean);
|
||||||
@@ -65,6 +67,7 @@ export async function GET() {
|
|||||||
id: bestPractice.id,
|
id: bestPractice.id,
|
||||||
url: `/best-practices/${bestPractice.id}`,
|
url: `/best-practices/${bestPractice.id}`,
|
||||||
title: bestPractice.frontmatter.briefTitle,
|
title: bestPractice.frontmatter.briefTitle,
|
||||||
|
shortTitle: bestPractice.frontmatter.briefTitle,
|
||||||
description: bestPractice.frontmatter.briefDescription,
|
description: bestPractice.frontmatter.briefDescription,
|
||||||
group: 'Best Practices',
|
group: 'Best Practices',
|
||||||
})),
|
})),
|
||||||
@@ -72,6 +75,7 @@ export async function GET() {
|
|||||||
id: questionGroup.id,
|
id: questionGroup.id,
|
||||||
url: `/questions/${questionGroup.id}`,
|
url: `/questions/${questionGroup.id}`,
|
||||||
title: questionGroup.frontmatter.briefTitle,
|
title: questionGroup.frontmatter.briefTitle,
|
||||||
|
shortTitle: questionGroup.frontmatter.briefTitle,
|
||||||
group: 'Questions',
|
group: 'Questions',
|
||||||
})),
|
})),
|
||||||
...guides.map((guide) => ({
|
...guides.map((guide) => ({
|
||||||
@@ -82,12 +86,14 @@ export async function GET() {
|
|||||||
title: guide.frontmatter.title,
|
title: guide.frontmatter.title,
|
||||||
description: guide.frontmatter.description,
|
description: guide.frontmatter.description,
|
||||||
authorId: guide.frontmatter.authorId,
|
authorId: guide.frontmatter.authorId,
|
||||||
|
shortTitle: guide.frontmatter.title,
|
||||||
group: 'Guides',
|
group: 'Guides',
|
||||||
})),
|
})),
|
||||||
...videos.map((video) => ({
|
...videos.map((video) => ({
|
||||||
id: video.id,
|
id: video.id,
|
||||||
url: `/videos/${video.id}`,
|
url: `/videos/${video.id}`,
|
||||||
title: video.frontmatter.title,
|
title: video.frontmatter.title,
|
||||||
|
shortTitle: video.frontmatter.title,
|
||||||
group: 'Videos',
|
group: 'Videos',
|
||||||
})),
|
})),
|
||||||
...projects.map((project) => ({
|
...projects.map((project) => ({
|
||||||
@@ -95,6 +101,7 @@ export async function GET() {
|
|||||||
url: `/projects/${project.id}`,
|
url: `/projects/${project.id}`,
|
||||||
title: project.frontmatter.title,
|
title: project.frontmatter.title,
|
||||||
description: project.frontmatter.description,
|
description: project.frontmatter.description,
|
||||||
|
shortTitle: project.frontmatter.title,
|
||||||
group: 'Projects',
|
group: 'Projects',
|
||||||
})),
|
})),
|
||||||
]),
|
]),
|
||||||
|
Reference in New Issue
Block a user