From 0abcccc0c2283f2671b45bbd233f8a64eaef0cf0 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Thu, 24 Jun 2021 18:25:27 +1000 Subject: cleaned up publish.el --- publish.el | 20 +++++++------------- 1 file 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 "" ) ("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 "" ) ("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 " @@ -145,14 +138,14 @@ PUB-DIR is when the output will be placed." :html-mathjax-template "" ) ("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 -- cgit v1.2.3