diff options
| author | Yehonal <yehonal.azeroth@gmail.com> | 2020-01-11 23:45:58 +0100 |
|---|---|---|
| committer | Yehonal <yehonal.azeroth@gmail.com> | 2020-01-11 23:45:58 +0100 |
| commit | a81a933ab806dabbc6720d98f470c6a5edcd9a15 (patch) | |
| tree | 6340a4ced8b8517e567c8a02746c8673caf5717f /_includes/git-wiki/sections | |
| parent | 2b94ffd1e14066696f3cb7e7286a5e2425561df8 (diff) | |
| download | wiki-a81a933ab806dabbc6720d98f470c6a5edcd9a15.tar.gz wiki-a81a933ab806dabbc6720d98f470c6a5edcd9a15.tar.bz2 wiki-a81a933ab806dabbc6720d98f470c6a5edcd9a15.zip | |
implemented static TOC #57
Thanks to @vzickus for the suggestion
Diffstat (limited to '_includes/git-wiki/sections')
| -rw-r--r-- | _includes/git-wiki/sections/content/content.html | 10 | ||||
| -rw-r--r-- | _includes/git-wiki/sections/head/scripts.html | 1 | ||||
| -rw-r--r-- | _includes/git-wiki/sections/tail/tail.html | 11 |
3 files changed, 1 insertions, 21 deletions
diff --git a/_includes/git-wiki/sections/content/content.html b/_includes/git-wiki/sections/content/content.html index 73c7b5b..b356968 100644 --- a/_includes/git-wiki/sections/content/content.html +++ b/_includes/git-wiki/sections/content/content.html @@ -3,15 +3,7 @@ {% include git-wiki/sections/tools/tools.html %} - {% if site.inc_before_toc %} - {% include {{ site.inc_before_toc }} %} - {% endif %} - - <div id="git-wiki-toc"></div> - - {% if site.inc_after_toc %} - {% include {{ site.inc_after_toc }} %} - {% endif %} + {% include git-wiki/components/toc/toc.html %} {% if site.inc_before_content %} {% include {{ site.inc_before_content }} %} diff --git a/_includes/git-wiki/sections/head/scripts.html b/_includes/git-wiki/sections/head/scripts.html index 65ee4ff..9cf23f3 100644 --- a/_includes/git-wiki/sections/head/scripts.html +++ b/_includes/git-wiki/sections/head/scripts.html @@ -4,7 +4,6 @@ <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script> -<script src="{{ '/assets/js/toc.js' | relative_url }}"></script> <script src="{{ '/assets/js/red-links.js' | relative_url }}"></script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> diff --git a/_includes/git-wiki/sections/tail/tail.html b/_includes/git-wiki/sections/tail/tail.html index 6d32583..692867f 100644 --- a/_includes/git-wiki/sections/tail/tail.html +++ b/_includes/git-wiki/sections/tail/tail.html @@ -18,17 +18,6 @@ </script> {% endif %} -<script type="text/javascript"> - $(document).ready(function () { - $('#git-wiki-toc').toc({ - title: '<i>Contents</i>', - showSpeed: 0, - headers: '#git-wiki-content h1, #git-wiki-content h2, #git-wiki-content h3, #git-wiki-content h4, #git-wiki-content h5, #git-wiki-content h6' - }); - $(document.body).redLinks(); - }); -</script> - {% if site.inc_after_tail %} {% include {{ site.inc_after_tail }} %} {% endif %} |
