Skip to content

Commit b0b43ca

Browse files
updated breadcrumb
1 parent e0dc375 commit b0b43ca

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

assets/js/generateBreadcrumb.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ function generateBreadCrumb() {
22
const breadCrumbContainer = document.getElementById("breadcrumb");
33
let pathArray = window.location.pathname.split("/").filter((p) => p);
44
const repoName = "javascript-course-notes";
5-
pathArray.unshift(repoName);
65

76
// If last segment is index.html, drop it
87
if (pathArray[pathArray.length - 1]?.toLowerCase() === "index.html") {
@@ -27,7 +26,6 @@ function generateBreadCrumb() {
2726
breadcrumbHTML += `<a href="${fullPath}">${decodeURIComponent(segment)}</a>
2827
<img src="https://khalidrahmanhanify.github.io/${repoName}/assets/Icons/arrow_right.png" style="width: 20px; height: 20px;"/>`;
2928
});
30-
console.log(fullPath);
3129

3230
breadCrumbContainer.innerHTML = breadcrumbHTML;
3331
}

0 commit comments

Comments
 (0)