diff --git a/src/components/Breadcrumbs.astro b/src/components/Breadcrumbs.astro index 951391e17..e8841a18c 100644 --- a/src/components/Breadcrumbs.astro +++ b/src/components/Breadcrumbs.astro @@ -12,8 +12,6 @@ const { breadcrumbs, roadmapId } = Astro.props;
+
+ { + topics.map((topic) => { + // Breadcrumbs have three additional items e.g. + // + // Roadmaps / Frontend / Topics / Internet / HTTP + // ---^----------^---------^---- + // + // Subtracting 3 to get the total parent count + const totalParentCount = topic.breadcrumbs.length - 3; + + return ( + + {topic.text} + + ); + }) + } +
+
+