]> git.vanrenterghem.biz Git - www2.vanrenterghem.biz.git/commitdiff
Voeg MVP publicatiescript toe.
authorFrederik Vanrenterghem <frederik@vanrenterghem.biz>
Sat, 25 Nov 2023 13:48:11 +0000 (21:48 +0800)
committerFrederik Vanrenterghem <frederik@vanrenterghem.biz>
Sat, 25 Nov 2023 13:48:11 +0000 (21:48 +0800)
maak-website.el [new file with mode: 0644]

diff --git a/maak-website.el b/maak-website.el
new file mode 100644 (file)
index 0000000..74244b9
--- /dev/null
@@ -0,0 +1,25 @@
+(require 'ox-publish)
+
+(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 "<link rel=\"stylesheet\"
+                  href=\"../other/mystyle.css\" type=\"text/css\"/>"
+         :html-preamble t
+        :recursive t
+        :auto-sitemap t)
+
+        ("assets"
+         :base-directory "~/websites/stage.vanrenterghem.biz/assets/"
+         :base-extension *
+         :publishing-directory "~/websites/stage.vanrenterghem.biz/target/assets/"
+         :publishing-function org-publish-attachment)
+
+        ("website" :components ("orgfiles" "assets"))))