X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=my-publish.el;h=b21533dbe8a9d226717ad5d46792b662bf3372a6;hb=b33c6ab57943b861817299ce21a416ed3504eaa6;hp=2ff77bce166719892580189be6a215e26bf0a531;hpb=50a02bc7a618f1a652c524d72a1a3b205e96f35e;p=blog.git diff --git a/my-publish.el b/my-publish.el index 2ff77bc..b21533d 100644 --- a/my-publish.el +++ b/my-publish.el @@ -24,37 +24,34 @@ ;;; Code: -;; (defconst root-dir "~/Private/blog/") - (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 - " " + "
")) (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. @@ -85,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") @@ -111,7 +112,13 @@ License: CC BY-SA 4 ;; sitemap :auto-sitemap t :sitemap-filename "sitemap.org" - :sitemap-title "Sitemap") + :sitemap-title "Blog" + :sitemap-sort-files anti-chronologically + :sitemap-file-entry-format "%d %t" + + ;; other generic options + :with-toc nil ; table of contents + ) ("blog-css" :base-directory ,(concat root-dir "/css")