X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=my-publish.el;h=825bd892c8c89afd9264eaa80f502202c667b22e;hb=bacacc9c2de6de55468c7b9333c8dd8807428778;hp=528465f28037644831328eac6420fcae01231c49;hpb=110712795d9f0fded395cd4529e8989283a2232d;p=blog.git
diff --git a/my-publish.el b/my-publish.el
index 528465f..825bd89 100644
--- a/my-publish.el
+++ b/my-publish.el
@@ -28,33 +28,32 @@
(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-mode " (org-version) "")) (defun blog-setup-project-alist (root-dir &optional output-dir) "Set project alist. `output-dir' is the directory of publish-directory. @@ -85,7 +84,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 +114,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")