aboutsummaryrefslogtreecommitdiff
path: root/publish.el
diff options
context:
space:
mode:
Diffstat (limited to 'publish.el')
-rw-r--r--publish.el17
1 files changed, 16 insertions, 1 deletions
diff --git a/publish.el b/publish.el
index 664be9a..b1f6659 100644
--- a/publish.el
+++ b/publish.el
@@ -78,6 +78,11 @@ PUB-DIR is when the output will be placed."
(if (equal "../pages/microblog.org" (file-name-nondirectory filename))
(org-html-publish-to-html plist filename pub-dir)))
+(defun my-blog-local-mathjax ()
+ '((path "/js/MathJax.js?config=TeX-AMS-MML_HTMLorMML")
+ (scale "100") (align "center") (indent "2em") (tagside "right")
+ (mathml nil)))
+
(setq org-publish-project-alist
'(("posts"
:base-directory "posts/"
@@ -96,6 +101,7 @@ PUB-DIR is when the output will be placed."
:html-self-link-headlines t
:author ("Yuchen Pei")
:html-postamble me/html-postamble
+ :html-mathjax-options ((path "/js/MathJax.js?config=TeX-AMS-MML_HTMLorMML"))
)
("microposts"
:base-directory "microposts/"
@@ -113,6 +119,7 @@ PUB-DIR is when the output will be placed."
:html-preamble me/html-preamble
:author ("Yuchen Pei")
:html-postamble me/html-postamble
+ :html-mathjax-options ((path "/js/MathJax.js?config=TeX-AMS-MML_HTMLorMML"))
)
("pages"
:base-directory "pages/"
@@ -126,6 +133,7 @@ PUB-DIR is when the output will be placed."
:author ("Yuchen Pei")
:html-postamble me/html-postamble
:html-prefer-user-labels t
+ :html-mathjax-options ((path "/js/MathJax.js?config=TeX-AMS-MML_HTMLorMML"))
)
("css"
:base-directory "css/"
@@ -134,4 +142,11 @@ PUB-DIR is when the output will be placed."
:publishing-function org-publish-attachment
:recursive t
)
- ("all" :components ("posts" "microposts" "pages" "css"))))
+ ("js"
+ :base-directory "js/"
+ :base-extension "js"
+ :publishing-directory "site/js"
+ :publishing-function org-publish-attachment
+ :recursive t
+ )
+ ("all" :components ("posts" "microposts" "pages" "css" "js"))))