@@ -146,24 +146,32 @@ body
146
146
ml (' account' , ' 190754' );
147
147
148
148
//- Littlefoot - Footnotes
149
- script( src ="https://cdn.jsdelivr.net/npm/littlefoot@3.3/dist/littlefoot.min.js" )
150
- script ( type ="application/javascript" ) .
151
- littlefoot .default ({
152
- buttonTemplate: ` <sup
153
- aria-expanded="false"
154
- aria-label="Footnote <% number %>"
155
- class="footnote-ref">
156
- <a
157
- href="#<% reference %>"
158
- class="footnote-ref"
159
- id="<% reference %>"
160
- data-footnote-identifier="<% reference %>"
161
- data-footnote-style="default"
162
- alt="See Footnote <% number %>"
163
- rel="footnote"
164
- data-footnote-content="<% content %>">
165
- <% number %>
166
- </a></sup>`
167
- })
168
- Array .prototype .forEach .call (document .querySelectorAll (' .footnotes.footnote-print-only, .footnotes .footnote-print-only' ), e => e .classList .remove (' footnote-print-only' ))
169
- Array .prototype .forEach .call (document .querySelectorAll (' .footnote-backref' ), (el ) => { el .href = el .href .replace (' #' , ' #lf-' ) })
149
+ //- script(src="https://cdn.jsdelivr.net/npm/littlefoot@4.1/dist/littlefoot.min.js")
150
+ //- script(type="application/javascript").
151
+ //- littlefoot.littlefoot({
152
+ //- buttonTemplate: `button
153
+ //- aria-label="Footnote <% number %>"
154
+ //- class="littlefoot__button"
155
+ //- id="<% reference %>"
156
+ //- title="See Footnote <% number %>"
157
+ //- />
158
+ //- <% number %>
159
+ //- </button>`
160
+ //- //- buttonTemplate: `<sup
161
+ //- //- aria-expanded="false"
162
+ //- //- aria-label="Footnote <% number %>"
163
+ //- //- class="footnote-ref">
164
+ //- //- <a
165
+ //- //- href="#<% reference %>"
166
+ //- //- class="footnote-ref"
167
+ //- //- id="<% reference %>"
168
+ //- //- data-footnote-identifier="<% reference %>"
169
+ //- //- data-footnote-style="default"
170
+ //- //- alt="See Footnote <% number %>"
171
+ //- //- rel="footnote"
172
+ //- //- data-footnote-content="<% content %>">
173
+ //- //- <% number %>
174
+ //- //- </a></sup>`
175
+ //- })
176
+ //- Array.prototype.forEach.call(document.querySelectorAll('.footnotes.footnote-print-only, .footnotes .footnote-print-only'), e => e.classList.remove('footnote-print-only'))
177
+ //- Array.prototype.forEach.call(document.querySelectorAll('.footnote-backref'), (el) => { el.href = el.href.replace('#', '#lf-') })
0 commit comments