Anatole: Footnote pointing to homepage

Created on 28 May 2020  路  2Comments  路  Source: lxndrblz/anatole

The link of the footnote in the markdown example is pointing to the homepage rather than to the corresponding site.

https://themes.gohugo.io//theme/anatole/post/markdown-syntax/

bug

All 2 comments

I had this issue as well. This is because of the backref tag in the header. I removed it and footnotes work fine now, but it also broke relative pathing (which I haven't fixed).

Fixing this bug will lead to a new one that makes footnote backrefs scroll to the footnotes but hide them behind the nav bar. The fix required some CSS hacks.

I'm sorry that I don't have the time to submit a PR but you can check out 418e527 and 79eef83 for the changes I made regarding footnotes and check my blog if you want to see it in action.

For anyone looking, the scroll padding css tag used here doesn't work on Safari. You might need to the snippet below to your style.css file as a hack. (Unfortunately, it isn't super consistent either, but the best workaround I was able to find.)

.footnote-ref::before {
     content: "";
     display: block;
     margin-top: -90px;
     padding-top: 90px;
     position: absolute;
 }
Was this page helpful?
0 / 5 - 0 ratings

Related issues

SamEdwardes picture SamEdwardes  路  6Comments

msfjarvis picture msfjarvis  路  3Comments

cwpearson picture cwpearson  路  5Comments

Sptandi picture Sptandi  路  4Comments

ivnvitx picture ivnvitx  路  3Comments