blob: edd227b29ff7d1947aa64c518805fe3da7c8ca55 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
(add-to-list 'load-path "./")
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
(require 'ox-publish)
(require 'ox-ascii)
(require 'elpher) ;; for gopher
(require 'shittyweb-html)
;; Dont forgor https://github.com/gophernicus/gophernicus
(setq org-publish-project-alist
'(
("org" :components ("xhtml-notes" "xhtml-static"))
("xhtml-notes"
:base-directory "org/"
:base-extension "org"
:publishing-directory "xhtml/"
:recursive t
:publishing-function shittyweb-publish-to-html
:headline-levels 4
:auto-preamble t
:with-author nil
:with-creator t
:with-toc t
:section-numbers t
:time-stamp-file nil
)
("xhtml-static"
:base-directory "org/"
:base-extension "css\\|html\\|xhtml\\|py\\|png\\|jpg\\|gif\\|cgi"
:include ("blog/feed.xml")
:exclude "template.xhtml"
:publishing-directory "xhtml/"
:recursive t
:publishing-function org-publish-attachment
)
("gopher-notes"
:base-directory "org/"
:base-extension "org"
:exclude "404.org\\|index.org"
:publishing-directory "gopher/"
:recursive t
:publishing-function org-ascii-publish-to-ascii
)
("gopher-static"
:base-directory "org/"
:base-extension ""
:include ("gophermap")
:publishing-directory "gopher/"
:recursive t
:publishing-function org-publish-attachment
))
org-html-extension "xhtml"
org-html-validation-link nil
org-html-head-include-default-style nil
org-html-home/up-format "<div id=\"org-div-home-and-up\">\n\
<a href=\"%sindex.xhtml\">\
<img src=\"%simages/back_home.png\" alt=\"Back to home page\" /></a>\n\
%s\n</div>")
(org-publish-all t)
|