diff --git a/project.el b/project.el index d2eb329..476e44c 100644 --- a/project.el +++ b/project.el @@ -235,6 +235,11 @@ Return output file name." (defalias 'org-blog-posts-sitemap-fn (apply-partially 'org-blog-sitemap-fn-descr posts-descr)) +(defun org-blog-optimize (_) + (let ((default-directory root-dir)) + (message "executing ./pre-deploy.sh") + (shell-command "./pre-deploy.sh"))) + (setq org-html-htmlize-output-type 'css) (setq org-html-htmlize-font-prefix "org-") (setq org-publish-project-alist @@ -246,6 +251,7 @@ Return output file name." :recursive t :preparation-function org-blog-prepare :publishing-function org-blog-publish-to-html + :completion-function org-blog-optimize :with-toc nil :with-title nil :with-date t @@ -275,7 +281,7 @@ Return output file name." :publishing-function org-blog-publish-attachment :recursive t) - ("blog" :components ("orgfiles" "assets")))) + ("blog" :components ("assets" "orgfiles")))) ;; add target=_blank and rel="noopener noreferrer" to all links by default (defun my-org-export-add-target-blank-to-http-links (text backend info) diff --git a/project.el.sig b/project.el.sig index 1873af1..6a5130b 100644 Binary files a/project.el.sig and b/project.el.sig differ