1 ;;; blog.el --- Config file used to export blog -*- lexical-binding: t; -*-
3 ;; Copyright (C) 2017 Peng Li
5 ;; Author: Peng Li <seudut@gmail.com>
8 ;; This program is free software; you can redistribute it and/or modify
9 ;; it under the terms of the GNU General Public License as published by
10 ;; the Free Software Foundation, either version 3 of the License, or
11 ;; (at your option) any later version.
13 ;; This program is distributed in the hope that it will be useful,
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;; GNU General Public License for more details.
18 ;; You should have received a copy of the GNU General Public License
19 ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
23 ;; This is emacs config used to export Blog Org files in batch mode.
31 ;; To prevent inline-css when exporting html. will use external css
32 (setq org-html-htmlize-output-type 'css)
34 (setq org-publish-project-alist
37 :base-directory "~/Private/blog/"
39 :publishing-directory "~/Private/publish_html"
41 :publishing-function org-html-publish-to-html
45 :auto-sitemap t ;Generate sitmap.org automagicaly...
46 :sitemap-filename "sitemap.org" ;... call it sitemap.org (it's the default )...
47 :sitemap-title "Sitemap"
49 :html-table-of-contents nil
50 :html-postamble nil ;dont export creator auto validation info in html postamble div
52 :html-head "<link rel='stylesheet' href='/Users/peli3/Private/blog/res/worg.css' />"
53 :html-head-include-default-style nil
54 :html-head-include-scripts nil)
56 :base-directory "~/Private/blog/"
57 :base-extension "css\\|js\\|png\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
58 :publishing-directory "~/Private/publish_html"
60 :publishing-function org-publish-attachment
61 :table-of-contents nil)
62 ("org" :components ("org-notes" "org-static"))))