summaryrefslogtreecommitdiff
path: root/_extensions/js/footer
diff options
context:
space:
mode:
Diffstat (limited to '_extensions/js/footer')
-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