Oddities with footnotes

7 views
Skip to first unread message

T. Kurt Bond

unread,
Feb 3, 2023, 2:35:54 PM2/3/23
to nikola-discuss
I'm using Nikola 8.2.3 with the bootblog-jinja theme.

Why do some footnote references look like
<a class="footnote-reference brackets" href="#xeksil" id="footnote-reference-1" role="doc-noteref"><span class="fn-bracket">[</span>1<span class="fn-bracket">]</span></a>
there there are spans with [ and ] surrounding the footnote number and in others the footnote reference looks like this
<a class="footnote-reference brackets" href="#posts" id="id1">1</a>
????

This means that if you use :before and :after on a.footnote-reference.bracket you get double [[]] on the first, while the second only has one [].

The list of footnotes in the former have them as an aside inside an aside with a span with another span inside that has a literal [ and an a element that has the footnote number and the backref, then another span with a literal ] and then the paragraph with the content of the footnote.   This means you get the number on a separate line before the content of the footnote.

 The list of footnotes in the later are inside a dl element where the dt elements have an a element with :before of [ and after of ], all inside a dt element.

I'm a little confused.
--

Chris Warrick

unread,
Feb 3, 2023, 3:18:51 PM2/3/23
to nikola-...@googlegroups.com
The CSS included with Nikola is appropriate only for the latest
version of docutils at the time of release. Docutils sometimes change
the CSS and HTML output — in this case, they moved the brackets from
the HTML output to CSS rules. Please make sure you have the latest
version of `docutils` and force a rebuild of your posts and pages (by
doing `rm -rf cache` or `nikola build -a`).

(I added some code on `master` to ensure Nikola always rebuilds when
the docutils version changes.)

--
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16

T. Kurt Bond

unread,
Feb 3, 2023, 3:46:38 PM2/3/23
to nikola-...@googlegroups.com
Thanks.  Doing `nikola build -a` made them all the same.

--
You received this message because you are subscribed to the Google Groups "nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nikola-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nikola-discuss/CAMw%2Bj7JMvcY80pY92cK_-TYa3-_t3fSdyiXZtAcU1_v2rwTDsg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages