We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0dc375 commit b0b43caCopy full SHA for b0b43ca
1 file changed
assets/js/generateBreadcrumb.js
@@ -2,7 +2,6 @@ function generateBreadCrumb() {
2
const breadCrumbContainer = document.getElementById("breadcrumb");
3
let pathArray = window.location.pathname.split("/").filter((p) => p);
4
const repoName = "javascript-course-notes";
5
- pathArray.unshift(repoName);
6
7
// If last segment is index.html, drop it
8
if (pathArray[pathArray.length - 1]?.toLowerCase() === "index.html") {
@@ -27,7 +26,6 @@ function generateBreadCrumb() {
27
26
breadcrumbHTML += `<a href="${fullPath}">${decodeURIComponent(segment)}</a>
28
<img src="https://khalidrahmanhanify.github.io/${repoName}/assets/Icons/arrow_right.png" style="width: 20px; height: 20px;"/>`;
29
});
30
- console.log(fullPath);
31
32
breadCrumbContainer.innerHTML = breadcrumbHTML;
33
}
0 commit comments