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/")