]> git.vanrenterghem.biz Git - www2.vanrenterghem.biz.git/blob - maak-website.el
e0c8c065da961a9b82b7e70d050e6a7889ac3077
[www2.vanrenterghem.biz.git] / maak-website.el
1 (require 'ox-publish)
3 (setq org-html-doctype "html5")
5 (defun website-header (info)
6   (with-temp-buffer
7     (insert-file-contents "~/websites/stage.vanrenterghem.biz/html/navbar.html")
8     (buffer-string)))
10 (defun website-footer (info)
11   (with-temp-buffer
12     (insert-file-contents "~/websites/stage.vanrenterghem.biz/html/footer.html")
13     (buffer-string)))
15 (setq org-publish-project-alist
16       '(("orgfiles"
17          :base-directory "~/websites/stage.vanrenterghem.biz/source/"
18          :base-extension "org"
19          :publishing-directory "~/websites/stage.vanrenterghem.biz/target"
20          :publishing-function org-html-publish-to-html
21          :exclude "assets*" ;; regexp
22          :headline-levels 3
23          :section-numbers nil
24          :with-toc nil
25          :html-head "<link href=\"/assets/styles/bootstrap-5.3.0/css/bootstrap.min.css\" rel=\"stylesheet\" />"
26          :html-preamble t
27          :recursive t
28          :auto-sitemap t
29          :html-preamble website-header
30          :html-postamble website-footer
31          )
33         ("assets"
34          :base-directory "~/websites/stage.vanrenterghem.biz/source/assets/"
35          :base-extension any
36          :recursive t
37          :publishing-directory "~/websites/stage.vanrenterghem.biz/target/assets/"
38          :publishing-function org-publish-attachment)
40         ("website" :components ("orgfiles" "assets"))))