From 38acbeb6acd4af5479940996bad1c85ba90c97f8 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Fri, 10 Mar 2017 23:37:56 +0800 Subject: [PATCH] blog.el - disable home/up div --- blog.el | 41 ++++++++++++++++++++++++++++++++++++----- posts/Blog-with-org-mode.org | 4 ++++ 2 files changed, 40 insertions(+), 5 deletions(-) diff --git a/blog.el b/blog.el index 2ab08e8..ff2fca2 100644 --- a/blog.el +++ b/blog.el @@ -68,6 +68,31 @@ ;; 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" + ;; "" + )) + +;; (setq blog-header +;; (concat +;; " ")) + +;; don't know why setting this null in `org-publish-project-alist' doesn't work +;; (setf org-html-home/up-format "") + (setq org-publish-project-alist `( ;; ("org-notes" @@ -98,7 +123,8 @@ :publishing-function org-html-publish-to-html ;; html style - :html-head ,(concat "") + :htlm-link-home "/" + :html-head ,blog-extra-head :html-postamble nil) ("blog-posts" ;; publishing @@ -107,12 +133,17 @@ :publishing-directory ,(concat publish-dir "/posts") :recursive t :publishing-function org-html-publish-to-html - :html-link-home "/" - + ;; html style - :html-head ,(concat "") + :html-link-home "/" + ;; disable Home/Up + :html-home/up-format "" + :html-link-up "" + :html-link-home "" ;; don't export creator auto validation info in html postamble div - :html-postamble nil) + :html-head ,blog-extra-head + :html-preamble nil + :html-postamble "") ("blog-css" :base-directory ,(concat root-dir "/css") :base-extension ".*" diff --git a/posts/Blog-with-org-mode.org b/posts/Blog-with-org-mode.org index 88daa69..2795400 100644 --- a/posts/Blog-with-org-mode.org +++ b/posts/Blog-with-org-mode.org @@ -48,6 +48,10 @@ nothing else)]]。 其中 =css= , 利用的是 =worg.css=, 并参考了[[http:// ("org" :components ("org-notes" "org-static")))) #+END_SRC +#+BEGIN_SRC sh + sudo aptitude install tmux emacs +#+END_SRC + * CI build * Web server -- 2.11.0