-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.el
59 lines (55 loc) · 1.65 KB
/
build.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
55
56
57
58
59
;;; package --- Build wmedrano.dev
;;; Commentary:
;;; Code:
;; Install dependencies.
(require 'package)
(setq package-user-dir (expand-file-name "./.packages"))
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
("elpa" . "https://elpa.gnu.org/packages/")))
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
(package-install 'htmlize)
(package-install 'zig-mode)
(package-install 'rust-mode)
(require 'ox-publish)
(setq
org-html-style-default "
<link rel=\"stylesheet\"
href=\"https://fonts.googleapis.com/css?family=Quicksand\">
<link rel=\"stylesheet\" href=\"/css/styles.css\">
"
org-html-htmlize-output-type 'css
org-html-link-home "/"
org-html-home/up-format "
<div class=\"navbar\" id=\"org-div-home-and-up\">
<!--Ignore %s-->
<a accesskey=\"H\" href=\"%s\">wmedrano dot dev</a>
</div>"
org-html-postamble t
org-html-postamble-format
'(("en" "
<div></div>
<p class=\"postamble-title\">Title: %t</p>
<p class=\"author\">Author: %a</p>
<p class=\"date\">Date: %d</p>
"
)))
(setq website
(list "wmedrano dot dev"
:recursive t
:base-directory "./content"
:publishing-directory "./public"
:publishing-function 'org-html-publish-to-html))
(setq images
(list "wmedrano dot dev images"
:recursive t
:base-directory "./content"
:base-extension "png\\|svg\\|css"
:publishing-directory "./public"
:publishing-function 'org-publish-attachment))
(setq-local org-publish-project-alist
(list website images))
(org-publish-all t)
(provide 'build)
;;; build.el ends here