From 78bbb5f8fc090fb94562d4a09116c84b591eb59b Mon Sep 17 00:00:00 2001 From: Peng Li Date: Mon, 13 Mar 2017 01:00:38 +0800 Subject: [PATCH] Include publish file and disable toc --- my-publish.el | 12 ++++++++++-- posts/Blog-with-org-mode.org | 37 ++++--------------------------------- 2 files changed, 14 insertions(+), 35 deletions(-) diff --git a/my-publish.el b/my-publish.el index 42649f2..a263119 100644 --- a/my-publish.el +++ b/my-publish.el @@ -87,7 +87,11 @@ :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") @@ -113,7 +117,11 @@ ;; 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") diff --git a/posts/Blog-with-org-mode.org b/posts/Blog-with-org-mode.org index 2795400..3c20675 100644 --- a/posts/Blog-with-org-mode.org +++ b/posts/Blog-with-org-mode.org @@ -14,44 +14,15 @@ nothing else)]]。 其中 =css= , 利用的是 =worg.css=, 并参考了[[http:// * Org-publish 配置 其中有些配置可能是 =Org= 版本不同的原因,有些不同。比如 =htlm-head=, 代替 了 =style= -#+BEGIN_SRC emacs-lisp :tangle yes :results silent - (require 'ox-publish) - - (setq org-publish-project-alist - `( - ("org-notes" - :base-directory "~/Private/blog/" - :base-extension "org" - :publishing-directory "~/Private/publish_html" - :recursive t - :publishing-function org-html-publish-to-html - :headline-levels 4 - :section-numbers nil - :auto-preamble t - :auto-sitemap t ;Generate sitmap.org automagicaly... - :sitemap-filename "sitemap.org" ;... call it sitemap.org (it's the default )... - :sitemap-title "Sitemap" - - :table-of-contents nil - :html-postamble nil ;dont export creator auto validation info in html postamble div - :html-link-home "/" - :html-head "" - ;; :html-head-extra ,my-blog-extra-head - :html-head-include-default-style nil - :html-head-include-scripts nil) - ("org-static" - :base-directory "~/Private/blog/" - :base-extension "css\\|js\\|png\\|gif\\|pdf\\|mp3\\|ogg\\|swf" - :publishing-directory "~/Private/publish_html" - :recursive t - :publishing-function org-publish-attachment) - ("org" :components ("org-notes" "org-static")))) -#+END_SRC + +#+INCLUDE: "../my-publish.el" src emacs-lisp :lines "29-" #+BEGIN_SRC sh sudo aptitude install tmux emacs #+END_SRC + + * CI build * Web server -- 2.11.0