From 590567daac36f083f85bcacad739f5e83e18aaaa Mon Sep 17 00:00:00 2001 From: Frederik Vanrenterghem Date: Sat, 25 Nov 2023 22:33:53 +0800 Subject: [PATCH] Begin huisstijl. --- html/footer.html | 0 html/navbar.html | 18 ++++++++++++++++++ maak-website.el | 25 ++++++++++++++++++++----- 3 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 html/footer.html create mode 100644 html/navbar.html diff --git a/html/footer.html b/html/footer.html new file mode 100644 index 0000000..e69de29 diff --git a/html/navbar.html b/html/navbar.html new file mode 100644 index 0000000..1309938 --- /dev/null +++ b/html/navbar.html @@ -0,0 +1,18 @@ + + diff --git a/maak-website.el b/maak-website.el index 74244b9..e0c8c06 100644 --- a/maak-website.el +++ b/maak-website.el @@ -1,5 +1,17 @@ (require 'ox-publish) +(setq org-html-doctype "html5") + +(defun website-header (info) + (with-temp-buffer + (insert-file-contents "~/websites/stage.vanrenterghem.biz/html/navbar.html") + (buffer-string))) + +(defun website-footer (info) + (with-temp-buffer + (insert-file-contents "~/websites/stage.vanrenterghem.biz/html/footer.html") + (buffer-string))) + (setq org-publish-project-alist '(("orgfiles" :base-directory "~/websites/stage.vanrenterghem.biz/source/" @@ -10,15 +22,18 @@ :headline-levels 3 :section-numbers nil :with-toc nil - :html-head "" + :html-head "" :html-preamble t :recursive t - :auto-sitemap t) + :auto-sitemap t + :html-preamble website-header + :html-postamble website-footer + ) ("assets" - :base-directory "~/websites/stage.vanrenterghem.biz/assets/" - :base-extension * + :base-directory "~/websites/stage.vanrenterghem.biz/source/assets/" + :base-extension any + :recursive t :publishing-directory "~/websites/stage.vanrenterghem.biz/target/assets/" :publishing-function org-publish-attachment) -- 2.39.5