-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Footnotes inside panels don't work #972
Comments
This occurs as the panel is a dynamic panel, so the footnotes are not generated in the "main" html. We could alternatively put footnotes at the bottom referencing stuff in unloaded panels. Of course, the downside would be that the reader might see a sudden jump in footnote numbering due to unloaded panels. Implementation wise, we would have to loop through all nested panels to exhaustively find all footnotes. |
If we assume that panels are typically used to embed content taken from elsewhere, it makes more sense if the footnote is contained inside the panel rather than at the bottom of the host page. Is that feasible? |
Yeah, that would be feasible |
Great. Let's give that a try then. |
@damithc I remember the reason we removed the "linkbacks" from the footnotes was because sometimes the panel containing the reference wouldn't be open, so it would be confusing if the linkback took you nowhere. Since now each panel has its own footnote, would it be good to add the linkbacks back? referring to the arrow beside "Math". |
Sure 👍 |
Since we show the footnotes in popovers, the backreference would also appear in the popover though. The back button in browsers should also be able to take you back to where you were before clicking the footnote and is also more accurate if you have multiple references to the same footnote (otherwise it always takes you back to the topmost footnote reference) |
Since footnotes for includes from panels are now "sealed" as well, should we also clarify how they should behave in the case of static
|
@openorclose any thoughts? |
I'm going to encapsulate (1) and (2) for the v3 'rewrite' for now, it may lead to easier-to-predict behaviour (would also fix this issue) Footnote definitions can still be reused via nunjucks' (3) should definitely be a thing though |
Example (see the footnote inside the tutorials panel) https://nus-cs2113-ay1920s2.github.io/website/admin/weeklySchedule.html
The text was updated successfully, but these errors were encountered: