I have a Jekyll blog that runs on kramdown 1.10, and I have tried to change the location of my footnote list to no avail. This is intended to go on a github-pages site, but doesn't work locally either.
According to this issue , there is a way to add a footnote location elsewhere in your documents using Kramdown by defining a custom identifier that maps to a DOM object in your post.
Particularly I have added this to my _config.yml
kramdown:
footnote_location: 'my_footnotes'
and tried all of these variations atthe desired location in my layout:
<ol id="my_footnotes" class="my_footnotes"></ol>
<div id="my_footnotes" class="my_footnotes"></div>
<div id="my_footnotes" class="my_footnotes">
<ol id="my_footnotes" class="my_footnotes"></ol>
</div>
What is the correct way to generate footnotes in a specific location?
In the issue you reference, they talk about the implementation commit .
The interesting par is the test file for footnote placement .
This is how to place your footnotes somewhere else than at the end of your page.
* footnotes will be placed here. This line is necessary
{:footnotes}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.