From 190f7149908f9e340777847d034eacd4d90414a6 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 6 Oct 2024 13:11:26 +0200 Subject: use filter extension (not include file) for contributions page footer, to allow embedding pages in pdf --- _extensions/js/footer/_extension.yml | 6 ++++++ _extensions/js/footer/footer.lua | 13 +++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 _extensions/js/footer/_extension.yml create mode 100644 _extensions/js/footer/footer.lua (limited to '_extensions/js') 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 = [[ + + ]] + table.insert(doc.blocks, pandoc.RawBlock('html', footer_html)) + return doc + end +end -- cgit v1.2.3