We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eb31ea commit ed6efb7Copy full SHA for ed6efb7
assets/js/generateBreadcrumb.js
@@ -4,14 +4,10 @@ function generateBreadCrumb() {
4
// Split the pathname into parts
5
let pathArray = window.location.pathname.split("/").filter((p) => p);
6
7
- // Detect repo name (first part of GitHub Pages URL)
8
- const repoName = pathArray.length > 0 ? pathArray[0] : "";
+ const repoName = pathArray.length > 0 ? pathArray[0] : "courses-notes";
9
const basePath = `/${repoName}`;
10
11
- // Drop repo name from breadcrumb display
12
- if (repoName) {
13
- pathArray.shift();
14
- }
+ pathArray.shift();
15
16
// If last segment is index.html, drop it
17
if (pathArray[pathArray.length - 1]?.toLowerCase() === "index.html") {
0 commit comments