diff options
| author | Yehonal <yehonal.azeroth@gmail.com> | 2017-05-22 10:54:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-22 10:54:43 +0200 |
| commit | b95429005e06557f348a43bc7137bf6ffa4a0006 (patch) | |
| tree | 92a2d696114c5dfad0597fb668e8af993f67cecb /_layouts/default.html | |
| parent | e0be3fac3029fc9fe963204c01b519200df6a610 (diff) | |
| download | wiki-b95429005e06557f348a43bc7137bf6ffa4a0006.tar.gz wiki-b95429005e06557f348a43bc7137bf6ffa4a0006.tar.bz2 wiki-b95429005e06557f348a43bc7137bf6ffa4a0006.zip | |
including wiki features and implemented TOC
Diffstat (limited to '_layouts/default.html')
| -rw-r--r-- | _layouts/default.html | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/_layouts/default.html b/_layouts/default.html index d254aeb..88e4ec8 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -8,6 +8,7 @@ <title>{{ site.title | default: site.github.repository_name }} by {{ site.github.owner_name }}</title> <link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}"> + <script src="{{ '/assets/js/wiki-features.js' | relative_url }}"></script> {% if site.custom_head %} {% include head.html %} @@ -83,7 +84,8 @@ {% endif %} </div> - + <div id="toc"></div> + {{ content }} {% if site.comments %} @@ -108,7 +110,7 @@ <script src="{{ '/assets/js/scale.fix.js' | relative_url }}"></script> - {% if site.google_analytics %} + {% if site.google_analytics %} <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), @@ -118,6 +120,12 @@ ga('create', '{{ site.google_analytics }}', 'auto'); ga('send', 'pageview'); </script> - {% endif %} + {% endif %} + + <script type="text/javascript"> + $(document).ready(function() { + $('#toc').toc(); + }); + </script> </body> </html> |
