-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublish.el
54 lines (50 loc) · 2.23 KB
/
publish.el
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
(require 'ox)
( org-babel-do-load-languages 'org-babel-load-languages '((gnuplot . t)) )
( org-babel-do-load-languages 'org-babel-load-languages '((python . t)) )
( org-babel-do-load-languages 'org-babel-load-languages '((shell . t)) )
(setf user-full-name "Maciej Grela")
(setf user-mail-address "[email protected]")
(setq org-publish-project-alist
'(
("magical-index" :components ("magical-index-pages" "magical-index-static" "magical-index-archive"))
("magical-index-pages"
:base-directory "."
:base-extension "org"
:exclude "_site/"
:publishing-directory "_site/"
:recursive t
:publishing-function org-html-publish-to-html
:auto-sitemap t
:sitemap-title "A Certain Magical Index"
:with-author t
:with-date nil
:with-creator nil
:language "en"
:html-metadata-timestamp-format "%Y-%m-%d %H:%M"
:html-postamble "<div><h3>Links</h3><p><a href=\"https://github.com/enkiusz\">Github</a> <a href=\"https://git.sr.ht/~enkiusz/\">Sourcehut</a> <a href=\"https://hackaday.io/projects/hacker/159106\">Hackaday</a></p><p><a href=\"https://fediring.net/previous?host=pop.fsck.pl\">←</a> <a href=\"https://fediring.net/\">Fediring</a> <a href=\"https://fediring.net/next?host=pop.fsck.pl\">→</a></p></div>"
)
("magical-index-static"
:base-directory "."
:base-extension "css\\|js\\|svg\\|pdf\\|bin\\|rpm\\|deb\\|png\\|webp\\|jpg\\|jpeg\\|gif\\|apk\\|tar.xz\\|tar.bz2\\|tar.gz\\|zip\\|rar\\|txt\\|py\\|sh\\|config\\|kicad.*\\|logicdata\\|ino\\|csv\\|pcapng\\|sal"
:exclude "_site/"
:publishing-directory "_site/"
:recursive t
:with-author t
:with-date nil
:with-creator nil
:publishing-function org-publish-attachment
)
("magical-index-archive"
:base-directory "."
:base-extension 'any
:exclude "_site/"
:publishing-directory "_site/projects/archive"
:recursive t
:with-author t
:with-date nil
:with-creator nil
:language "en"
:publishing-function org-publish-attachment
)
)
)