X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=my-publish.el;h=b21533dbe8a9d226717ad5d46792b662bf3372a6;hb=b33c6ab57943b861817299ce21a416ed3504eaa6;hp=5a5c9287585c163834b1291d9c8194d56fb322a9;hpb=d2003e5d109c4ac4475263b2284e79f40ff199b7;p=blog.git diff --git a/my-publish.el b/my-publish.el index 5a5c928..b21533d 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,9 +33,8 @@ (setq blog-extra-head (concat - ;; "\n" - "\n" - "")) + "\n" + "")) (setq blog-header (concat @@ -46,7 +43,7 @@ "" "" "
")) @@ -54,7 +51,7 @@ (setq blog-footer (concat "
\n" - "

Org-mode " (org-version) "")) + 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. @@ -115,7 +112,9 @@ ;; 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