(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/" :base-extension "org" :publishing-directory "~/websites/stage.vanrenterghem.biz/target" :publishing-function org-html-publish-to-html :exclude "assets*" ;; regexp :headline-levels 3 :section-numbers nil :with-toc nil :html-head-include-default-style nil :html-head "" :html-preamble t :recursive t :auto-sitemap t ;:sitemap-filename "~/websites/stage.vanrenterghem.biz/source/posts/sitemap.org" :html-preamble website-header :html-postamble website-footer ) ("assets" :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) ("website" :components ("orgfiles" "assets"))))