aboutsummaryrefslogtreecommitdiff
path: root/publish.el
diff options
context:
space:
mode:
Diffstat (limited to 'publish.el')
-rw-r--r--publish.el20
1 files changed, 7 insertions, 13 deletions
diff --git a/publish.el b/publish.el
index 7e7bfb7..4426a57 100644
--- a/publish.el
+++ b/publish.el
@@ -53,7 +53,6 @@ representation for the files to include, as returned by
(insert-file-contents file)
(goto-char (point-min))
(let ((beg (+ 1 (re-search-forward "^$"))))
-; (print (concat file ": " (number-to-string beg) ", " (number-to-string (point-max))))
(buffer-substring beg (point-max)))))))
(defun me/org-microposts-sitemap-format-entry (entry style project)
@@ -80,15 +79,9 @@ 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")
- '((path "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML")
- (scale "100") (align "center") (indent "2em") (tagside "right")
- (mathml nil)))
-
(setq org-publish-project-alist
'(("posts"
- :base-directory "posts/"
+ :base-directory "posts"
:base-extension "org"
:publishing-directory "site/posts"
:recursive nil
@@ -109,7 +102,7 @@ PUB-DIR is when the output will be placed."
:html-mathjax-template "<script type=\"text/javascript\" src=\"%PATH\"></script>"
)
("microposts"
- :base-directory "microposts/"
+ :base-directory "microposts"
:base-extension "org"
:publishing-directory "site/microposts"
:recursive t
@@ -128,9 +121,9 @@ PUB-DIR is when the output will be placed."
:html-mathjax-template "<script type=\"text/javascript\" src=\"%PATH\"></script>"
)
("pages"
- :base-directory "pages/"
+ :base-directory "pages"
:base-extension "org"
- :publishing-directory "site/"
+ :publishing-directory "site"
:recursive t
:publishing-function org-html-publish-to-html
:html-head "<link rel='stylesheet' href='../css/default.css' type='text/css'/>
@@ -145,14 +138,14 @@ PUB-DIR is when the output will be placed."
:html-mathjax-template "<script type=\"text/javascript\" src=\"%PATH\"></script>"
)
("css"
- :base-directory "css/"
+ :base-directory "css"
:base-extension "css"
:publishing-directory "site/css"
:publishing-function org-publish-attachment
:recursive t
)
("js"
- :base-directory "js/"
+ :base-directory "js"
:base-extension "js"
:publishing-directory "site/js"
:publishing-function org-publish-attachment
@@ -160,6 +153,7 @@ PUB-DIR is when the output will be placed."
)
("assets"
:base-directory "assets"
+ :base-extension any
:publishing-directory "site/assets"
:publishing-function org-publish-attachment
:recursive t