ferano.io/build-org.el

36 lines
1.3 KiB
EmacsLisp

;; Load the publishing system
(require 'ox-publish)
(setq org-publish-project-alist
'(("org-files"
:recursive t
:base-directory "./org"
:publishing-directory "./org/output/"
:publishing-function org-html-publish-to-html
:body-only t
:title "Joseph Ferano - Blog"
;; :with-author nil ;; Don't include author name
;; :with-creator nil ;; Include Emacs and Org versions in footer
;; :with-toc nil ;; Include a table of contents
;; :with-title nil
;; :with-validation nil
;; :section-numbers nil ;; Don't include section numbers
;; :time-stamp-file nil
)
("static-files"
:base-directory "./content/"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|svg"
:publishing-directory "./public/"
:recursive t
:publishing-function org-publish-attachment)
("site" :components ("org-files" "static-files"))))
(setq org-html-validation-link nil
org-html-head-include-default-style nil)
;; org-html-head "<link rel=\"stylesheet\" href=\"css/normalize.css\" /><link rel=\"stylesheet\" href=\"css/main.css\" />")
;; (org-publish-project "site" t)
(org-publish-project "org-files" t)
(message "Build complete!")