feat: add backlinks to footnotes

This commit is contained in:
welpo 2023-08-02 18:33:49 +02:00
parent a1ceb74785
commit 8e50038637
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
12 changed files with 80 additions and 14 deletions

View file

@ -33,6 +33,11 @@
{%- if config.extra.copy_button and config.extra.copy_button == true -%}
<script defer src="{{ get_url(path='js/copyCodeToClipboard.min.js', trailing_slash=false) | safe }}"/></script>
{%- endif -%}
{# Add backlinks to footnotes #}
{%- if config.extra.footnote_backlinks and config.extra.footnote_backlinks == true or page.extra.footnote_backlinks and page.extra.footnote_backlinks == true -%}
<script defer src="{{ get_url(path='js/footnoteBacklinks.min.js', trailing_slash=false | safe )}}"/></script>
{%- endif -%}
</body>
</html>