working org-site org

This commit is contained in:
Kyle Isom 2025-04-29 00:14:42 -07:00
parent 2f27a26286
commit ea2006aa94
1 changed files with 24 additions and 24 deletions

48
org.el
View File

@ -13,7 +13,7 @@
(defun httpd-toggle-server () (interactive) (defun httpd-toggle-server () (interactive)
(if *httpd-server-running* (if *httpd-server-running*
(httpd-stop) (httpd-stop)
(http-start)) (httpd-start))
(setq *httpd-server-running* (not *httpd-server-running*)) (setq *httpd-server-running* (not *httpd-server-running*))
(not *httpd-server-running*))) (not *httpd-server-running*)))
@ -132,7 +132,7 @@
("org-site-static" ("org-site-static"
:base-directory "~/org/static/" :base-directory "~/org/static/"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|woff2" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|woff2"
:publishing-directory "~/org/publish/s/" :publishing-directory "~/org/publish/static/"
:recursive t :recursive t
:publishing-function org-publish-attachment) :publishing-function org-publish-attachment)
@ -143,13 +143,13 @@
:base-directory "~/org/entries/" :base-directory "~/org/entries/"
:exclude "\.~undo-tree~$" :exclude "\.~undo-tree~$"
:html-doctype "html5" :html-doctype "html5"
:html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/s/main.css\" />" :html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/static/main.css\" />"
:html-head-include-scripts nil :html-head-include-scripts nil
:html-html5-fancy t :html-html5-fancy t
:html-link-home "/" :html-link-home "/"
:html-link-up "/e/" :html-link-up "/entries/"
:html-postamble t :html-postamble t
:publishing-directory "~/org/publish/e/" :publishing-directory "~/org/publish/entries/"
:publishing-function org-html-publish-to-html :publishing-function org-html-publish-to-html
:auto-sitemap t :auto-sitemap t
:html-head-include-default-style nil :html-head-include-default-style nil
@ -163,12 +163,12 @@
:base-directory "~/org/pages/" :base-directory "~/org/pages/"
:exclude "\.~undo-tree~$" :exclude "\.~undo-tree~$"
:html-doctype "html5" :html-doctype "html5"
:html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/s/main.css\" />" :html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/static/main.css\" />"
:html-head-include-scripts nil :html-head-include-scripts nil
:html-html5-fancy t :html-html5-fancy t
:html-link-home "/" :html-link-home "/"
:html-link-up "/p/" :html-link-up "/pages/"
:publishing-directory "~/org/publish/p/" :publishing-directory "~/org/publish/pages/"
:publishing-function org-html-publish-to-html :publishing-function org-html-publish-to-html
:auto-sitemap t :auto-sitemap t
:html-head-include-default-style nil :html-head-include-default-style nil
@ -180,7 +180,7 @@
:base-directory "~/org" :base-directory "~/org"
:exclude "\.~undo-tree~$" :exclude "\.~undo-tree~$"
:html-doctype "html5" :html-doctype "html5"
:html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/s/main.css\" />" :html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/static/main.css\" />"
:html-head-include-default-style nil :html-head-include-default-style nil
:html-head-include-scripts nil :html-head-include-scripts nil
:html-html5-fancy t :html-html5-fancy t
@ -197,12 +197,12 @@
:base-directory "~/org/notes/" :base-directory "~/org/notes/"
:exclude "\.~undo-tree~$" :exclude "\.~undo-tree~$"
:html-doctype "html5" :html-doctype "html5"
:html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/s/main.css\" />" :html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/static/main.css\" />"
:html-head-include-scripts nil :html-head-include-scripts nil
:html-html5-fancy t :html-html5-fancy t
:html-link-up "../" :html-link-up "../"
:html-link-home "http://metacircular.net/" :html-link-home "http://metacircular.net/"
:publishing-directory "~/org/publish/m/" :publishing-directory "~/org/publish/notes/"
:publishing-function org-html-publish-to-html :publishing-function org-html-publish-to-html
:html-head-include-default-style nil) :html-head-include-default-style nil)
@ -211,7 +211,7 @@
("org-site-roam-static" ("org-site-roam-static"
:base-directory "~/org/roam/" :base-directory "~/org/roam/"
:base-extension "svg\\|png\\|jpg\\|gif\\|pdf\\|org" :base-extension "svg\\|png\\|jpg\\|gif\\|pdf\\|org"
:publishing-directory "~/org/publish/n/" :publishing-directory "~/org/publish/roam/"
:recursive t :recursive t
:publishing-function org-publish-attachment) :publishing-function org-publish-attachment)
@ -222,24 +222,24 @@
:exclude "\.~undo-tree~$" :exclude "\.~undo-tree~$"
:eval yes :eval yes
:html-doctype "html5" :html-doctype "html5"
:html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/s/main.css\" />" :html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/static/main.css\" />"
:html-head-include-scripts nil :html-head-include-scripts nil
:html-link-home "/" :html-link-home "/"
:html-link-up "/n/" :html-link-up "/roam/"
:html-html5-fancy t :html-html5-fancy t
:publishing-directory "~/org/publish/n/" :publishing-directory "~/org/publish/roam/"
:publishing-function org-html-publish-to-html :publishing-function org-html-publish-to-html
:html-head-include-default-style nil) :html-head-include-default-style nil
;;; org publishes everything at once. ;;; org publishes everything at once.
("org" ("org"
:components ("org-site-static" :components ("org-site-static"
"org-site-entries" "org-site-entries"
"org-site-pages" "org-site-pages"
"org-site-root" "org-site-root"
"org-site-notes" "org-site-notes"
"org-site-roam-static" "org-site-roam-static"
"org-site-roam")))) "org-site-roam")))))
;;; org publishing keybindings: C-c ;;; org publishing keybindings: C-c
;;; c to reset the cache ;;; c to reset the cache