From 07cfa9503b15ecf91d44fb85167b4a5993b29bc0 Mon Sep 17 00:00:00 2001 From: Sergiu Ivanov Date: Sun, 30 Sep 2018 20:51:45 +0200 Subject: [PATCH] work.el: Prepare for exporting index.html from the root directory. --- work.el | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/work.el b/work.el index 481a92c..4bf349e 100644 --- a/work.el +++ b/work.el @@ -47,7 +47,7 @@ (setq org-publish-project-alist `(("work-site" - :components ("work-site-en" "work-site-fr" "work-site-content")) + :components ("work-site-en" "work-site-en-index" "work-site-fr" "work-site-content")) ("work-site-en" @@ -67,6 +67,26 @@ :html-postamble ,(make-postamble 'en)) + ;; We are going to need an index.html in the root directory. + ;; We'll have a separate subproject for that file. + ("work-site-en-index" + :base-extension "org" + :base-directory ,work-base + :exclude "work-notes.org" + :publishing-directory ,publishing-base + :publishing-function org-html-publish-to-html + + :section-numbers nil + :with-toc nil + :with-latex t + + :html-head-include-default-style nil + :html-head-include-scripts nil + :html-head-extra ,my-styles + :html-preamble ,my-preamble + :html-postamble ,(make-postamble 'en)) + + ("work-site-fr" :base-extension "org" :base-directory ,(concat work-base "fr/")