diff --git a/styles/bigblow/js/bigblow.js b/styles/bigblow/js/bigblow.js index b8ea8c6..e7349c7 100644 --- a/styles/bigblow/js/bigblow.js +++ b/styles/bigblow/js/bigblow.js @@ -47,8 +47,10 @@ $(function() { function generateMiniToc(divId) { $('#minitoc').empty().append('

In this section

'); $('#' + divId).find('h3').each(function(i) { + let pos = $(this).text().search(" "); + let text = $(this).text().substring(0, pos); $("#minitoc").append("" - + $(this).text() + ""); + + text + ""); }); // Ensure that the target is expanded (hideShow) $('#minitoc a[href^="#"]').click(function() {