Solve Issue 80
Take the title from the head of the document and copy it to the top of the table of contents.
This commit is contained in:
parent
3a1995b800
commit
e460af9ad3
|
@ -31,6 +31,9 @@ $( document ).ready(function() {
|
|||
});
|
||||
|
||||
$( document ).ready(function() {
|
||||
// Solving Issue #80
|
||||
// Add home/index link in sidebar above TOC in readtheorg theme
|
||||
$("#table-of-contents > h2").html($(".title").html());
|
||||
$('#text-table-of-contents ul').first().addClass('nav');
|
||||
// ScrollSpy also requires that we use
|
||||
// a Bootstrap nav component.
|
||||
|
|
Loading…
Reference in New Issue