aboutsummaryrefslogtreecommitdiff
path: root/publish.el
blob: e75509a7d18cae42ffe52379e86c44398d4ab9cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(setq package-load-list '((htmlize t)))
(package-initialize)

(unless (package-installed-p 'htmlize)
  (package-refresh-contents)
  (package-install 'htmlize))

(require 'org)
(require 'ox-html)
(setq org-publish-project-alist
      '(
        ("org-notes"
         :base-directory "~/website/"
         :base-extension "org"
         :publishing-directory "~/public_html/"
         :recursive t
         :publishing-function org-html-publish-to-html
         :with-toc nil
         :headline-levels 4
         :section-numbers nil
         :html-head "<link rel='stylesheet' href='/css/stylesheet.css' type='text/css'/>"
         :html-preamble "<div class='topnav'><a href='/index.html'>Home</a><a href='/projects.html'>Projects</a><a href='/tea.html'>Tea Tasting Notes</a><a href='/rants.html'>Rants</a><a href='/config.html'>Dotfiles</a><a href='/about.html'>About Me</a></div>"
         :html-postamble nil
         :auto-sitemap t
         :sitemap-filename "sitemap.org"
         :sitemap-title "Sitemap")
        ("org-static"
         :base-directory "~/website/"
         :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
         :publishing-directory "~/public_html"
         :recursive t
         :publishing-function org-publish-attachment)
        ("org-config"
         :base-directory "~/.doom.d/"
         :base-extension "org"
         :html-head "<link rel='stylesheet' href='/css/stylesheet.css' type='text/css'/>"
         :html-preamble "<div class='topnav'><a href='/index.html'>Home</a><a href='/projects.html'>Projects</a><a href='/tea.html'>Tea Tasting Notes</a><a href='/rants.html'>Rants</a><a href='/config.html'>Dotfiles</a><a href='/about.html'>About Me</a></div>"
         :html-postamble nil
         :publishing-directory "~/public_html"
         :publishing-function org-html-publish-to-html
         :headline-levels 4
         :auto-preamble t)
        ("org" :components ("org-notes" "org-static" "org-config"))))
(org-publish-all t)