From 35483ab1d59bf4da5d432e1a14716d25b2430a19 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Thu, 14 Apr 2022 21:19:57 +1000 Subject: minor update --- publish.el | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) (limited to 'publish.el') diff --git a/publish.el b/publish.el index 4b7274c..e3aaa6f 100644 --- a/publish.el +++ b/publish.el @@ -19,6 +19,7 @@ (package-initialize) (require 'ox-publish) +(require 'htmlize) (defvar this-date-format "%Y-%m-%d") @@ -91,6 +92,8 @@ 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))) +(setq org-src-fontify-natively t) + (setq org-publish-project-alist '(("posts" :base-directory "posts" @@ -113,6 +116,7 @@ PUB-DIR is when the output will be placed." :html-postamble me/html-postamble :html-mathjax-options ((path "/js/mathjax/MathJax.js?config=TeX-AMS_CHTML")) :html-mathjax-template "" + :htmlized-source t ) ("microposts" :base-directory "microposts" @@ -132,6 +136,7 @@ PUB-DIR is when the output will be placed." :html-postamble me/html-postamble :html-mathjax-options ((path "/js/mathjax/MathJax.js?config=TeX-AMS_CHTML")) :html-mathjax-template "" + :htmlized-source t ) ("pages" :base-directory "pages" @@ -152,21 +157,22 @@ PUB-DIR is when the output will be placed." :html-prefer-user-labels t :html-mathjax-options ((path "/js/mathjax/MathJax.js?config=TeX-AMS_CHTML")) :html-mathjax-template "" + :htmlized-source t ) ("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 + ) ("js" - :base-directory "js" - :base-extension "js" - :publishing-directory "site/js" - :publishing-function org-publish-attachment - :recursive t - ) + :base-directory "js" + :base-extension "js" + :publishing-directory "site/js" + :publishing-function org-publish-attachment + :recursive t + ) ("assets" :base-directory "assets" :base-extension any -- cgit v1.2.3