File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments