summaryrefslogtreecommitdiff
path: root/_extensions
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-10-06 13:11:26 +0200
committerJonas Smedegaard <dr@jones.dk>2024-10-06 13:11:26 +0200
commit190f7149908f9e340777847d034eacd4d90414a6 (patch)
tree9c0b3e661c45b9cae02e646a276b6815dad7a8e5 /_extensions
parentda0fae52d610b1093a4edea03164998d03b9b32a (diff)
use filter extension (not include file) for contributions page footer, to allow embedding pages in pdf
Diffstat (limited to '_extensions')
-rw-r--r--_extensions/js/footer/_extension.yml6
-rw-r--r--_extensions/js/footer/footer.lua13
2 files changed, 19 insertions, 0 deletions
diff --git a/_extensions/js/footer/_extension.yml b/_extensions/js/footer/_extension.yml
new file mode 100644
index 0000000..3c75b27
--- /dev/null
+++ b/_extensions/js/footer/_extension.yml
@@ -0,0 +1,6 @@
+title: Footer
+author: Jonas Smedegaard
+version: 0.0.1
+contributes:
+ filters:
+ - footer.lua
diff --git a/_extensions/js/footer/footer.lua b/_extensions/js/footer/footer.lua
new file mode 100644
index 0000000..a862df8
--- /dev/null
+++ b/_extensions/js/footer/footer.lua
@@ -0,0 +1,13 @@
+function Pandoc(doc)
+ if quarto.doc.is_format("html") then
+ local footer_html = [[
+<footer class="footer">
+ <div class="nav-footer">
+ <div class="nav-footer-center"><p><a href="../#colofon">Bidragsydere for dette nummer.</a></p></div>
+ </div>
+</footer>
+ ]]
+ table.insert(doc.blocks, pandoc.RawBlock('html', footer_html))
+ return doc
+ end
+end