getpelican / pelican

Static site generator that supports Markdown and reST syntax. Powered by Python.
https://getpelican.com
GNU Affero General Public License v3.0
12.62k stars 1.81k forks source link

Cannot modify or over-ride footnote layout #3390

Closed Kentoseth closed 2 months ago

Kentoseth commented 3 months ago

Issue

This is not a theme-related question. My theme (Flex) does not have any rendering for footnotes, but somehow (using Markdown and the [^1] format), footnotes are displayed under my content.

The issue is that I am unable to over-ride the design/layout of the footnotes section. I simply want to put a title saying ###Footnotes before the footnotes, but I don't know how to over-ride the settings. See below for the display:

fn-bug

Here is what AI suggested I try in article.html (but didn't work):

...
  <div>
    {{ article.content }}
  </div>

  {% if article.footnotes %}
  <div class="footnote">
    <h3>Footnotes</h3>
    <ol class="footnotes">
        {% for footnote in article.footnotes %}
        <li id="{{ footnote.id }}">{{ footnote.content }}
            <a class="footnote-back" href="#{{ footnote.backlink }}">↩</a>
        </li>
        {% endfor %}
    </ol>
  </div>
  {% endif %}
justinmayer commented 2 months ago

Hi @Kentoseth. Unfortunately, there is not enough information here to provide any assistance. I suggest following the instructions in the How to Get Help section of the Pelican documentation. Alternatively, you can try the Simple Footnotes plugin and see if that provides a workable solution for you.

justinmayer commented 2 months ago

Feel free to provide the necessary additional information, at which point this can be re-opened. In the future, please use the Discussions section for anything other than reproducible bug reports. Thanks!