diff --git a/website/template/default.twig b/website/template/default.twig index 1a3a9382f..2e65df59b 100644 --- a/website/template/default.twig +++ b/website/template/default.twig @@ -70,6 +70,10 @@ {% endblock %} +
@@ -91,9 +95,16 @@ gtag('js', new Date()); gtag('config', 'UA-15584647-20'); - $('article h2, article h3, article h4, article h5').each(function () { - var url = document.URL.replace(/#.*$/, "") + '#' + $(this).attr('id'); - $(this).prepend(' #'); + $(function() { + $('article h2, article h3, article h4, article h5').each(function () { + var url = document.URL.replace(/#.*$/, "") + '#' + $(this).attr('id'); + $(this).prepend(' #'); + }); + $('article h2').each(function () { + var url = '#' + $(this).attr('id'); + var caption = $(this).text().substr(2); + $('#in-page-menu ul').append('