mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-13 20:54:16 +02:00
Update link-groups
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
byte-byte-go: https://blog.bytebytego.com/archive
|
||||||
speedup-js: https://marvinh.dev/blog/speeding-up-javascript-ecosystem/
|
speedup-js: https://marvinh.dev/blog/speeding-up-javascript-ecosystem/
|
||||||
23-min-ts: https://www.youtube.com/watch?v=YmxwicpROps
|
23-min-ts: https://www.youtube.com/watch?v=YmxwicpROps
|
||||||
bun-vs-node: https://www.youtube.com/watch?v=qCX8rw4qOSA
|
bun-vs-node: https://www.youtube.com/watch?v=qCX8rw4qOSA
|
||||||
|
@@ -26,17 +26,14 @@ function linkGroupPathToId(filePath: string): string {
|
|||||||
*/
|
*/
|
||||||
export async function getAllLinkGroups(): Promise<LinkGroupFileType[]> {
|
export async function getAllLinkGroups(): Promise<LinkGroupFileType[]> {
|
||||||
const linkGroups = await import.meta.glob<LinkGroupFileType>(
|
const linkGroups = await import.meta.glob<LinkGroupFileType>(
|
||||||
'/src/link-groups/*.md',
|
'/src/data/link-groups/*.md',
|
||||||
{
|
{
|
||||||
eager: true,
|
eager: true,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
const linkGroupFiles = Object.values(linkGroups);
|
return Object.values(linkGroups).map((linkGroupFile) => ({
|
||||||
const enrichedLinkGroups = linkGroupFiles.map((linkGroupFile) => ({
|
|
||||||
...linkGroupFile,
|
...linkGroupFile,
|
||||||
id: linkGroupPathToId(linkGroupFile.file),
|
id: linkGroupPathToId(linkGroupFile.file),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
return enrichedLinkGroups;
|
|
||||||
}
|
}
|
||||||
|
@@ -34,6 +34,6 @@ const fullUrl = linkGroup.frontmatter[linkId!];
|
|||||||
<h2 class='text-xl font-bold'>Redirecting ..</h2>
|
<h2 class='text-xl font-bold'>Redirecting ..</h2>
|
||||||
<p>Click the link below if you are not redirected automatically.</p>
|
<p>Click the link below if you are not redirected automatically.</p>
|
||||||
|
|
||||||
<p><a href={fullUrl} class='underline text-blue-700'>{fullUrl}</a></p>
|
<p><a href={fullUrl} class='text-blue-700 underline'>{fullUrl}</a></p>
|
||||||
</div>
|
</div>
|
||||||
</SkeletonLayout>
|
</SkeletonLayout>
|
||||||
|
Reference in New Issue
Block a user