welpo / tabi

A modern Zola theme with search, multilingual support, optional JavaScript, a perfect Lighthouse score, and a focus on accessibility.
https://welpo.github.io/tabi/
MIT License
97 stars 32 forks source link

Footnote backlinks are not working #328

Closed stalkerGH closed 2 weeks ago

stalkerGH commented 2 weeks ago

I set footnote_backlinks = true in config.toml. I use lot of footnote backlinks in my content, they seem to be active (green numbers in my mint theme) but clicking on them doesn't scroll the page to footnotes. How to debug that?

welpo commented 2 weeks ago

footnote_backlinks only adds links FROM the footnotes TO the text. The links from text to footnotes are handled by Zola.

I would guess the problem is related to the Markdown. Do your footnotes look like this?


Some text[^1].

---

[^1]: Description of the footnote.

The triple dash is not necessary, but the [^n]: format (including the :) is.

stalkerGH commented 2 weeks ago

Thank you for reply. I understand phrase backlink now :)

My footnotes look like in your example: [^1] in text and almost the same in description. Almost... because lack of colon :) I added the colons and everything is working as expected - I go to footnote and I see small arrow at end of line.

Thanks for help!

stalkerGH commented 2 weeks ago

My problem is now solved so I close the issue.