Skip to content

Commit 15971bd

Browse files
Show correct part of the name.
1 parent 09d3570 commit 15971bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
links.map(function (link) {
7373
var href = link.attrs[0][1];
7474
var parts = href.split('/');
75-
var name = parts[parts.length - 1].replace(/-/g, ' ');
75+
var name = parts[parts.length - 2].replace(/-/g, ' ');
7676
return '<h1><a href="?' + href + '#1">' + name.charAt(0).toUpperCase() + name.slice(1) + '</a></h1>';
7777
}).reduce(function (before, current) {
7878
return before + current;

0 commit comments

Comments
 (0)