Skip to content

Commit 6e42370

Browse files
committed
Fix breadcrumb if current page has more parent panel
1 parent 2388866 commit 6e42370

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

glowdash/html.go

+2
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,11 @@ func htmlHeaderLine(sub string) string {
7777
for i := 0; i < pc; i++ {
7878
if Panels[i].SubTo() == sub {
7979
html += "<li><a href=\"/subpage/" + Panels[i].SubTo() + "\">" + Panels[i].Title() + "</a></li>"
80+
break
8081
}
8182
if Panels[i].LaunchTo() == sub {
8283
html += "<li><a href=\"/page/" + Panels[i].LaunchTo() + "\">" + Panels[i].Title() + "</a></li>"
84+
break
8385
}
8486
}
8587
}

0 commit comments

Comments
 (0)