diff options
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")))) |