diff options
author | Yuchen Pei <hi@ypei.me> | 2021-08-24 18:59:08 +1000 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2021-08-24 18:59:08 +1000 |
commit | f33c630e887ba57e7927dca3ac127f709ae60900 (patch) | |
tree | c237233b762076b2928fb5310d8f6e8699fd7a29 /publish.el | |
parent | f1d63ccf6b817e88fdc6274a3904106985049719 (diff) |
splitted pages
Diffstat (limited to 'publish.el')
-rw-r--r-- | publish.el | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -2,6 +2,14 @@ (require 'ox-publish) +(defun me/html-preamble (plist) + (with-temp-buffer + (insert-file-contents "../html-templates/preamble.html") (buffer-string))) + +(defun me/html-postamble (plist) + (with-temp-buffer + (insert-file-contents "../html-templates/postamble.html") (buffer-string))) + (setq org-publish-project-alist '(("pages" :base-directory "pages" @@ -16,13 +24,14 @@ :with-toc nil :section-numbers nil :html-self-link-headlines t + :html-preamble me/html-preamble :html-postamble nil ) ("css" - :base-directory "css" - :base-extension "css" - :publishing-directory "site/css" - :publishing-function org-publish-attachment - :recursive t - ) + :base-directory "css" + :base-extension "css" + :publishing-directory "site/css" + :publishing-function org-publish-attachment + :recursive t + ) ("all" :components ("pages" "css")))) |