Add "footnotes" to the "plugins" setting.
"plugins": ["footnotes"],
You can optionally edit the button label, configure an icon or define the button's position in the toolbar with the "footnoteButton" setting.
"footnoteButton": {
"title": "Note",
"icon": "footnote",
"addAfter": "italic",
},
{% do parseFootnoteDefinitions(footnotes) %}
{{ text|parseFootnoteMarkers }}
{{ getFootnotesHtml() }}
{% for entry in entries %}
{% do parseFootnoteDefinitions(footnotes, entry.slug) %}
{{ text|parseFootnoteMarkers(entry.slug) }}
{{ getFootnotesHtml(entry.slug) }}
{% endfor %}
{% do parseFootnoteDefinitions(footnotes) %}
{{ text|parseFootnoteMarkers(null, '_includes/footnotes/marker') }}
{{ getFootnotesHtml(null, '_includes/footnotes/list') }}
{% for block in blocks if block.type == 'footnotes' %}
{% do parseFootnoteDefinitions(block.footnotes) %}
{% endfor %}
{% for block in blocks if block.type != 'footnotes' %}
{% if block.type == 'text' %}
{{ block.text|parseFootnoteMarkers }}
{% endif %}
{% endfor %}
{{ getFootnotesHtml() }}
{% do setFootnoteDefinitions({
'4': 'Bla bla',
'g': 'More bla bla',
}) %}
{{ text|parseFootnoteMarkers }}
{{ getFootnotesHtml() }}