diff options
| author | Eltrac <hi@guhub.cn> | 2025-10-25 15:15:49 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-10-25 15:15:49 +0800 |
| commit | 6e228328877d2405dfc902598a00288a3f3e4d19 (patch) | |
| tree | 65ec02a614009f8b18adaa8b1c9880d343935056 /layouts/_partials/scripts | |
| parent | 6ec981733f09cc67c6afdb51a79e0360ef3b8f70 (diff) | |
refactor: replace littlefoot.js with injected footnotes use a simple
script to inject each footnote to coresponding paragraph.
Diffstat (limited to 'layouts/_partials/scripts')
| -rw-r--r-- | layouts/_partials/scripts/littlefoot-js.html | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/layouts/_partials/scripts/littlefoot-js.html b/layouts/_partials/scripts/littlefoot-js.html deleted file mode 100644 index 8ce2b721..00000000 --- a/layouts/_partials/scripts/littlefoot-js.html +++ /dev/null @@ -1,17 +0,0 @@ -<script src="/js/littlefoot.js"></script> -<script> - littlefoot.littlefoot({ - dismissOnUnhover: true, - activateOnHover: true, - scope: '.markdown-body', - buttonTemplate: ` - <button - aria-label="Footnote <% number %>" - class="littlefoot__button" - id="<% reference %>" - /> - <% number %> - </button> - ` - }); -</script> |
