This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #512 from eregs/511-footnotes
Ensure footnotes template has proper params.
- Loading branch information
Showing
4 changed files
with
22 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
{% if sub_context.node.footnotes %} | ||
<div class="footnote-box"> | ||
<h5>Footnotes</h5> | ||
<ul class="footnotes"> | ||
{% for footnote in sub_context.node.footnotes %} | ||
<li id="footnote-{{footnote.ref}}"> | ||
<span class="reference-num">{{footnote.ref}}.</span> | ||
<p> | ||
{{footnote.note}} | ||
</p> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% endif %} | ||
{% comment %} | ||
Lists footnotes at the bottom of a section. Assumes the "footnotes" variable | ||
is defined as a list. | ||
{% endcomment %} | ||
{% if footnotes %} | ||
<div class="footnote-box"> | ||
<h5>Footnotes</h5> | ||
<ul class="footnotes"> | ||
{% for footnote in footnotes %} | ||
<li id="footnote-{{footnote.ref}}"> | ||
<span class="reference-num">{{footnote.ref}}.</span> | ||
<p> | ||
{{footnote.note}} | ||
</p> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters