diff --git a/.build.yml b/.build.yml index fe3ea49..ef0b22a 100644 --- a/.build.yml +++ b/.build.yml @@ -5,6 +5,7 @@ packages: - hut sources: - https://git.sr.ht/~jjanzen/.doom.d + - https://git.sr.ht/~jjanzen/blog tasks: - build: | emacs --batch -f package-initialize --script ~/website/publish.el diff --git a/publish.el b/publish.el index e75509a..f6a84f5 100644 --- a/publish.el +++ b/publish.el @@ -22,16 +22,28 @@ :section-numbers nil :html-head "" :html-preamble "
" - :html-postamble nil - :auto-sitemap t - :sitemap-filename "sitemap.org" - :sitemap-title "Sitemap") + :html-postamble nil) ("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-blog" + :base-directory "~/blog/" + :base-extension "org" + :publishing-directory "~/public_html/blog" + :recursive t + :publishing-function org-html-publish-to-html + :with-toc nil + :headline-levels 4 + :section-numbers nil + :html-head "" + :html-preamble "" + :html-postamble nil + :auto-sitemap t + :sitemap-filename "blog.org" + :sitemap-title "Blog") ("org-config" :base-directory "~/.doom.d/" :base-extension "org"