X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=my-publish.el;h=f6944334aa419fdcd70f6c352de79c56457908a5;hb=3c52200cd9d75ee44985561a652fd365f37d5a17;hp=22e8b2ec73bf8b40f0c2fa264e41e3dcb9099272;hpb=29f15ec5bcc51fa01fc46e758cda6401007445ff;p=blog.git
diff --git a/my-publish.el b/my-publish.el
index 22e8b2e..f694433 100644
--- a/my-publish.el
+++ b/my-publish.el
@@ -28,33 +28,36 @@
(require 'org)
(require 'ox-publish)
+(require 'htmlize)
;; To prevent inline-css when exporting html. will use external css
(setq org-html-htmlize-output-type 'css)
(setq blog-extra-head
(concat
- ;; "\n"
- "\n"
- ""
- ))
+ "\n"
+ ""))
(setq blog-header
(concat
- " Peng Li
"
- "
"
+ "
RSS -License: CC BY-SA 4.0
\n" + org-html-creator-string)) (defun blog-setup-project-alist (root-dir &optional output-dir) "Set project alist. `output-dir' is the directory of publish-directory. @@ -85,7 +88,11 @@ License: CC BY-SA 4 :html-head-include-scripts nil :html-head-extra ,blog-extra-head :html-preamble ,blog-header - :html-postamble ,blog-footer) + :html-postamble ,blog-footer + + ;; other generic options + :with-toc nil + ) ("blog-posts" :base-directory ,(concat root-dir "/posts") @@ -111,7 +118,11 @@ License: CC BY-SA 4 ;; sitemap :auto-sitemap t :sitemap-filename "sitemap.org" - :sitemap-title "Sitemap") + :sitemap-title "Sitemap" + + ;; other generic options + :with-toc nil ; table of contents + ) ("blog-css" :base-directory ,(concat root-dir "/css")