diff options
author | Yuchen Pei <me@ypei.me> | 2021-06-24 18:25:27 +1000 |
---|---|---|
committer | Yuchen Pei <me@ypei.me> | 2021-06-24 18:25:27 +1000 |
commit | 0abcccc0c2283f2671b45bbd233f8a64eaef0cf0 (patch) | |
tree | 1fef91d1accad644cda0190e13010244ea1dcef2 | |
parent | fb8408a8220220ea0ba47d7988c43961a18ba87e (diff) |
cleaned up publish.el
-rw-r--r-- | publish.el | 20 |
1 files changed, 7 insertions, 13 deletions
@@ -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 |