diff options
author | XhmikosR <xhmikosr@gmail.com> | 2018-11-13 17:10:43 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2018-11-20 12:47:10 +0300 |
commit | b04f97f60be64549a37e0c71d676ab67e70891fa (patch) | |
tree | 86005442f323b4d732721647b6766f90ac3e09bb /site/_layouts | |
parent | 8470c5f78ce4578ce8c17b06206c23745c655b24 (diff) |
Replace anchor.js with jekyll-anchor-headings.
This allows us to generate the anchor links on build time.
https://github.com/allejo/jekyll-anchor-headings
Diffstat (limited to 'site/_layouts')
-rw-r--r-- | site/_layouts/docs.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/site/_layouts/docs.html b/site/_layouts/docs.html index 1d2125508e..cb52439b5a 100644 --- a/site/_layouts/docs.html +++ b/site/_layouts/docs.html @@ -24,7 +24,7 @@ <h1 class="bd-title" id="content">{{ page.title | smartify }}</h1> <p class="bd-lead">{{ page.description | smartify }}</p> {% include ads.html %} - {{ content }} + {% include vendor/anchor_headings.html html=content h_min=2 h_max=5 anchorBody="#" anchorTitle="Permalink" anchorClass="bd-anchor" %} </main> </div> </div> |