summaryrefslogtreecommitdiff
path: root/publish.el
diff options
context:
space:
mode:
Diffstat (limited to 'publish.el')
-rw-r--r--publish.el21
1 files changed, 15 insertions, 6 deletions
diff --git a/publish.el b/publish.el
index 9575451..7bfe116 100644
--- a/publish.el
+++ b/publish.el
@@ -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"))))