X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=blog.el;h=245a849cb7b98b308361d107ee7a6cac9a996471;hb=35bda6ea5602b1f1bd79e50eff027a1f24d47334;hp=2ab08e8cc8a635c358e0440594a4a2229bec6134;hpb=b13b4bec130538c082f698b9ce5bb72df72fca05;p=blog.git diff --git a/blog.el b/blog.el index 2ab08e8..245a849 100644 --- a/blog.el +++ b/blog.el @@ -68,27 +68,38 @@ ;; 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 + " ")) + + + +(setq blog-footer + "
\n +

RSS +License: CC BY-SA 4.0") - ;; :html-head-include-default-style nil - ;; :html-head-include-scripts nil) ("blog-pages" ;; publishing :base-directory ,root-dir @@ -98,8 +109,19 @@ :publishing-function org-html-publish-to-html ;; html style - :html-head ,(concat "") - :html-postamble nil) + :htlm-link-home "/" + ;; disable home/up div + :html-home/up-format "" + :html-link-home "" + :html-link-up "" + ;; + :html-head nil + :html-head-include-default-style nil + :html-head-include-scripts nil + :html-head-extra ,blog-extra-head + :html-preamble ,blog-header + :html-postamble ,blog-footer) + ("blog-posts" ;; publishing :base-directory ,(concat root-dir "/posts") @@ -107,12 +129,27 @@ :publishing-directory ,(concat publish-dir "/posts") :recursive t :publishing-function org-html-publish-to-html - :html-link-home "/" - + ;; html style - :html-head ,(concat "") - ;; don't export creator auto validation info in html postamble div - :html-postamble nil) + :html-link-home "/" + ;; disable Home/Up + :html-home/up-format "" + :html-link-up "" + :html-link-home "" + ;; Add css file, preamble and posamble + :html-head nil + :html-head-include-default-style nil + :html-head-include-scripts nil + :html-head-extra ,blog-extra-head + :html-preamble ,blog-header + :html-postamble ,blog-footer + + ;; sitemap + :auto-sitemap t + :sitemap-filename "sitemap.org" + :sitemap-title "Sitemap" + ) + ("blog-css" :base-directory ,(concat root-dir "/css") :base-extension ".*"