On Fri, 3 Feb 2023 at 20:35, T. Kurt Bond <[email protected]> wrote: > > 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.
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 -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nikola-discuss/CAMw%2Bj7JMvcY80pY92cK_-TYa3-_t3fSdyiXZtAcU1_v2rwTDsg%40mail.gmail.com.
