diff options
author | Jacob Janzen <jjanzenn@proton.me> | 2024-04-12 15:24:36 -0500 |
---|---|---|
committer | Jacob Janzen <jjanzenn@proton.me> | 2024-04-12 15:24:36 -0500 |
commit | 5b537ba863c46cd0c3a820edba9e9286dab5c0a9 (patch) | |
tree | 9e4da6c1b8f3b4bce740b5751b2044fb5d48b168 /publish.el | |
parent | 0a2350c75ebdf99bb2ac74c5243242ee3a1c2502 (diff) |
org-based setup
Diffstat (limited to 'publish.el')
-rw-r--r-- | publish.el | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/publish.el b/publish.el new file mode 100644 index 0000000..5513b6f --- /dev/null +++ b/publish.el @@ -0,0 +1,36 @@ +(require 'org) +(require 'ox-html) +(setq org-publish-project-alist + '( + ("org-notes" + :base-directory "~/website/" + :base-extension "org" + :publishing-directory "~/public_html/" + :recursive t + :publishing-function org-html-publish-to-html + :with-toc nil + :headline-levels 4 + :section-numbers nil + :html-head "<link rel='stylesheet' href='/css/stylesheet.css' type='text/css'/>" + :html-preamble "<div class='topnav'><a href='/index.html'>Home</a><a href='/projects.html'>Projects</a><a href='/tea.html'>Tea Tasting Notes</a><a href='/rants.html'>Rants</a><a href='/config.html'>Dotfiles</a><a href='/about.html'>About Me</a></div>" + :html-postamble nil + :auto-sitemap t + :sitemap-filename "sitemap.org" + :sitemap-title "Sitemap") + ("org-static" + :base-directory "~/website/" + :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" + :publishing-directory "~/public_html" + :recursive t + :publishing-function org-publish-attachment) + ("org-config" + :base-directory "~/dotfiles/.doom.d/" + :base-extension "org" + :html-head "<link rel='stylesheet' href='/css/stylesheet.css' type='text/css'/>" + :html-preamble "<div class='topnav'><a href='/index.html'>Home</a><a href='/projects.html'>Projects</a><a href='/tea.html'>Tea Tasting Notes</a><a href='/rants.html'>Rants</a><a href='/config.html'>Dotfiles</a><a href='/about.html'>About Me</a></div>" + :publishing-directory "~/public_html" + :publishing-function org-html-publish-to-html + :headline-levels 4 + :auto-preamble t) + ("org" :components ("org-notes" "org-static" "org-config")))) +(org-publish-all t) |