pawroman / zola-theme-terminimal

A simple, minimal retro theme for Zola
https://pawroman.github.io/zola-theme-terminimal/
Other
368 stars 84 forks source link

Footnotes generation changed with Zola 0.19.1 #72

Open heitorPB opened 1 month ago

heitorPB commented 1 month ago

Zola changed how footnotes are generated/parsed and the resulting HTML changed to a weird one.

From one of my posts, before Zola 0.19: before

With Zola 0.19.1: after

Lists did not change the behavior.

Zola changelog: https://github.com/getzola/zola/blob/master/CHANGELOG.md

heitorPB commented 3 weeks ago

My HTML changed from

<li>
    <sup class="footnote-reference"><a href="#kernel-source">1</a></sup>:
    <a href="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/char/random.c?h=v5.6.2&amp;id=4aa37c463764052c68c5c430af2a67b5d784c1e0">file <code>drivers/char/random.c</code></a>
</li>

to

<li>
    <div class="footnote-definition" id="kernel-source">
        <sup class="footnote-definition-label">1</sup>
        <p><a href="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/char/random.c?h=v5.6.2&amp;id=4aa37c463764052c68c5c430af2a67b5d784c1e0">file <code>drivers/char/random.c</code></a></p>
    </div>
</li>

How to stylize it nicely?