From 299e0c4da1aa46a77c35924f0f8fdf775d6415d8 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Fri, 25 Apr 2025 03:19:48 -0700 Subject: [PATCH] publish static files first --- publish.el | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/publish.el b/publish.el index fe16ed1..607c3f9 100644 --- a/publish.el +++ b/publish.el @@ -22,6 +22,14 @@ ;;; my web server directly. (setq org-publish-project-alist '( +;;; static contains... static files. Notably, the CSS and fonts. + ("org-site-static" + :base-directory "~/org/static/" + :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|woff2" + :publishing-directory "~/org/publish/s/" + :recursive t + :publishing-function org-publish-attachment) + ;;; entries contains blog posts. Simple-as. ("org-site-entries" :base-directory "~/org/entries/" @@ -57,14 +65,6 @@ :sitemap-filename "sitemap.org" :sitemap-title "metacircular pages") -;;; static contains... static files. Notably, the CSS and fonts. - ("org-site-static" - :base-directory "~/org/static/" - :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|woff2" - :publishing-directory "~/org/publish/s/" - :recursive t - :publishing-function org-publish-attachment) - ;;; the site root is mostly the index page. ("org-site-root" :base-directory "~/org"