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:
आयुष झा 2020-06-01 23:02:32 +05:45
parent 3a1995b800
commit e460af9ad3
No known key found for this signature in database
GPG Key ID: B8A4C36CEE73C65F
1 changed files with 3 additions and 0 deletions

View File

@ -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.