summaryrefslogtreecommitdiffstats
path: root/layouts/shortcodes
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-11 00:55:26 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-11 00:55:26 +0200
commit8113726c4ff06a2417695df0576cbc6553d13dd9 (patch)
tree1ddb19b352dd67e6e07b94177a0aa028aca33f21 /layouts/shortcodes
parent483a50cb3dfccb46ed495cdddd8a84979bca3695 (diff)
downloadgohugo-theme-ed-8113726c4ff06a2417695df0576cbc6553d13dd9.tar.gz
Add custom footnotes implementation
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/citation.html3
-rw-r--r--layouts/shortcodes/footnote.html3
-rw-r--r--layouts/shortcodes/footnotesList.html6
3 files changed, 12 insertions, 0 deletions
diff --git a/layouts/shortcodes/citation.html b/layouts/shortcodes/citation.html
new file mode 100644
index 0000000..df93f1c
--- /dev/null
+++ b/layouts/shortcodes/citation.html
@@ -0,0 +1,3 @@
+<li id="fn:{{ .Get 0 }}">
+ <p>{{ .Get 1 }}&nbsp;<a href="#fnref:{{ .Get 0 }}" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
+</li>
diff --git a/layouts/shortcodes/footnote.html b/layouts/shortcodes/footnote.html
new file mode 100644
index 0000000..506a1c7
--- /dev/null
+++ b/layouts/shortcodes/footnote.html
@@ -0,0 +1,3 @@
+<sup id="fnref:{{ .Get 0 }}">
+ <a href="#fn:{{ .Get 0 }}" class="footnote-ref" role="doc-noteref">*</a>
+</sup>
diff --git a/layouts/shortcodes/footnotesList.html b/layouts/shortcodes/footnotesList.html
new file mode 100644
index 0000000..bd17fee
--- /dev/null
+++ b/layouts/shortcodes/footnotesList.html
@@ -0,0 +1,6 @@
+<div class="footnotes" role="doc-endnotes">
+ <hr>
+ <ul>
+ {{ .Inner }}
+ </ul>
+</div>