aboutsummaryrefslogtreecommitdiff
path: root/elisp/#publish.el#
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2023-12-03 14:28:53 -0600
committerChristian Cleberg <hello@cleberg.net>2023-12-03 14:28:53 -0600
commit6fb9529c84a268a291a23ffdd90b8ebd18fa64c0 (patch)
tree6247126fa00ca39db0d44a9d99094a9261c4f986 /elisp/#publish.el#
parentc3e7d96aa5dd969919692d4b8a2fd153a8c2ce96 (diff)
downloadcleberg.net-6fb9529c84a268a291a23ffdd90b8ebd18fa64c0.tar.gz
cleberg.net-6fb9529c84a268a291a23ffdd90b8ebd18fa64c0.tar.bz2
cleberg.net-6fb9529c84a268a291a23ffdd90b8ebd18fa64c0.zip
fix: update code block interior
Diffstat (limited to 'elisp/#publish.el#')
-rw-r--r--elisp/#publish.el#38
1 files changed, 38 insertions, 0 deletions
diff --git a/elisp/#publish.el# b/elisp/#publish.el#
new file mode 100644
index 0000000..48c6f4f
--- /dev/null
+++ b/elisp/#publish.el#
@@ -0,0 +1,38 @@
+;; Publish org files to HTML
+
+;; Project publishing settings
+(setq org-publish-project-alist
+ '(("cleberg.net"
+ :base-directory "~/Source/cleberg.net/"
+ :publishing-function org-html-publish-to-html
+ :publishing-directory "~/Source/cleberg.net/public/"
+ :auto-sitemap t
+ :recursive t
+ :section-numbers nil
+ :with-author nil
+ :html-validation-link nil
+ :with-tags t
+ :html-head-include-default-style nil
+ :html-head-include-scripts nil
+ :html-head "<link rel=stylesheet href=/static/styles.css>"
+ :html-preamble "<nav><a href=/>Home</a><a href=/blog/>Blog</a><a href=/services/>Services</a><a href=/wiki/>Wiki</a></nav>")
+
+ ("rss"
+ :base-directory "~/Source/cleberg.net/blog/"
+ :base-extension "org"
+ :html-link-home "https://cleberg.net/"
+ :html-link-use-abs-url t
+ :rss-extension "xml"
+ :publishing-directory "~/Source/cleberg.net/public/"
+ :publishing-function (org-rss-publish-to-rss)
+ :section-numbers nil
+ :exclude ("index.org"))
+
+ ("static"
+ :base-directory "~/Source/cleberg.net/static/"
+ :base-extension "css\\|el"
+ :publishing-directory "~/Source/cleberg.net/public/static/"
+ :publishing-function org-publish-attachment)
+ ("website" :components ("cleberg.net" "rss" "static"))))
+
+(provide 'publish)