(require 'ox-publish) (setq org-html-validation-link nil org-html-head-include-scripts nil org-html-head-include-default-style nil org-html-head (with-temp-buffer (insert-file-contents "head.html") (buffer-string))) (setq org-publish-project-alist (list (list "content" :recursive t :base-directory "./src" :publishing-function 'org-html-publish-to-html :publishing-directory "./public" :with-author nil :with-creator nil :with-toc nil :section-numbers nil :time-stamp-file nil) (list "assets" :recursive t :base-directory "./src" :base-extension "css\\|png\\|ico\\|jpg\\|gif" :publishing-function 'org-publish-attachment :publishing-directory "./public"))) (org-publish-all t) (message "Build done!")