X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=my-publish.el;h=f9e0da0b45aa20097ba19c334b9b350a0c89e911;hb=44e4071401fd97ddbf457d3a90ddba2884e8efe0;hp=7f0cd311ce469ef4a62434dd82b24ae0b9e042a9;hpb=b180940e46407b5f41f1951487c02d3b586096e8;p=blog.git diff --git a/my-publish.el b/my-publish.el index 7f0cd31..f9e0da0 100644 --- a/my-publish.el +++ b/my-publish.el @@ -24,8 +24,6 @@ ;;; Code: -;; (defconst root-dir "~/Private/blog/") - (require 'org) (require 'ox-publish) (require 'htmlize) @@ -35,27 +33,25 @@ (setq blog-extra-head (concat - ;; "\n" - "\n" - "" - )) + "\n" + "")) (setq blog-header (concat - " " + "
")) (setq blog-footer - "
\n -

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. @@ -86,7 +82,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") @@ -112,7 +112,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")