-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublish.el
39 lines (34 loc) · 1.44 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
(require 'ox-publish)
(setq make-backup-files nil
org-html-validation-link nil
org-html-htmlize-output-type 'nil)
(setq alc-html-preamble
(org-babel-with-temp-filebuffer "./top-menu.html" (buffer-string)))
(setq alc-org-export-html-head
(concat "<link rel=\"stylesheet\" type=\"text/css\" href=\"https://lecigne.net/style.css\"/>\n"
"<link rel=\"icon\" href=\"https://lecigne.net/favicon.ico\"/>"
"<link href=\"https://fonts.googleapis.com/css2?family=Roboto&display=swap\" rel=\"stylesheet\">\n"
"<link href=\"https://fonts.googleapis.com/css2?family=Baloo+Chettan+2&display=swap\" rel=\"stylesheet\">"))
(setq org-publish-project-alist
`(("org-static"
:base-directory "./"
:base-extension "png\\|jpg\\|gif\\|ico\\|css"
:publishing-directory "~/pub/lecigne.net/"
:recursive t
:publishing-function org-publish-attachment)
("org-html"
:base-directory "./"
:base-extension "org"
:publishing-directory "~/pub/lecigne.net/"
:recursive t
:publishing-function org-html-publish-to-html
:headline-levels 4
:with-toc nil
:with-author nil
:time-stamp-file nil
:section-numbers t
:html-head ,alc-org-export-html-head
:html-preamble ,alc-html-preamble)
("website" :components ("org-html" "org-static"))))
(defun alc-publish ()
(org-publish "website" t))