From 6ecd68bafe2d21900f6c2865393412c544b893ac Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Wed, 7 Aug 2024 23:02:03 -0500 Subject: publish images separately --- publish.el | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'publish.el') diff --git a/publish.el b/publish.el index 0595c13..1a42686 100644 --- a/publish.el +++ b/publish.el @@ -86,7 +86,7 @@ :section-numbers nil :html-head "" :html-preamble "
HomeProjectsBlogDotfilesAbout MeRSS
") - ("org-static" + ("org-static-website" :base-directory "~/website/" :base-extension "txt\\|css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-directory "~/public_html" @@ -130,7 +130,7 @@ :sitemap-format-entry format-posts-rss-feed-entry) ("org-config" :base-directory "~/.dotfiles/" - :base-extension "(org\\|jpg\\|png)" + :base-extension "org" :html-head "" :html-preamble "
HomeProjectsBlogDotfilesAbout MeRSS
" :html-wrap-src-lines t @@ -141,5 +141,11 @@ :publishing-function org-html-publish-to-html :headline-levels 4 :auto-preamble t) - ("org" :components ("org-core" "org-static" "org-config" "org-blog" "org-rss")))) + ("org-static-config" + :base-directory "~/.dotfiles/" + :base-extension "txt\\|css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" + :publishing-directory "~/public_html/dotfiles" + :recursive t + :publishing-function org-publish-attachment) + ("org" :components ("org-core" "org-static-website" "org-config" "org-blog" "org-rss" "org-static-config")))) (org-publish-all t) -- cgit v1.2.3