]> git.vanrenterghem.biz Git - www2.vanrenterghem.biz.git/blob - maak-website.el
f55ae09eb8e79c5a2dfffe6094cc6f0aba560c20
[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-include-default-style nil
26          :html-head "<link href=\"/assets/styles/bootstrap-5.3.0/css/bootstrap.min.css\" rel=\"stylesheet\" />"
27          :html-preamble t
28          :recursive t
29          :auto-sitemap t
30          ;:sitemap-filename "~/websites/stage.vanrenterghem.biz/source/posts/sitemap.org"
31          :html-preamble website-header
32          :html-postamble website-footer
33          )
35         ("assets"
36          :base-directory "~/websites/stage.vanrenterghem.biz/source/assets/"
37          :base-extension any
38          :recursive t
39          :publishing-directory "~/websites/stage.vanrenterghem.biz/target/assets/"
40          :publishing-function org-publish-attachment)
42         ("website" :components ("orgfiles" "assets"))))