mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
rustbook: Fixes display of navigation links in README.html.
This commit is contained in:
parent
2214860d4a
commit
7151529f73
@ -52,7 +52,7 @@ document.addEventListener("DOMContentLoaded", function(event) {
|
||||
}
|
||||
|
||||
for (var i = 0; i < toc.length; i++) {
|
||||
if (toc[i].attributes['href'].value === href) {
|
||||
if (toc[i].attributes['href'].value.split('/').pop() === href) {
|
||||
var nav = document.createElement('p');
|
||||
if (i > 0) {
|
||||
var prevNode = toc[i-1].cloneNode(true);
|
||||
|
Loading…
Reference in New Issue
Block a user