2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-11 18:02:28 +03:00

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
This commit is contained in:
XhmikosR
2018-11-13 16:10:43 +02:00
parent 8470c5f78c
commit b04f97f60b
7 changed files with 98 additions and 18 deletions
+1 -1
View File
@@ -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>