#+title: Blogging in Org-Mode #+date: 2024-02-26 #+description: A guide to blogging with org-mode, no third-party tools required. #+filetags: :dev: * TODO Write a post on emacs first? - Could write-up my Doom Emacs config and workflow first, then reference here. * TODO Configure Emacs #+begin_src sh emacs -nw #+end_src =SPC f f= ---> =~/.doom.d/config.el= #+begin_src lisp ;; org-publish (require 'ox-publish) (setq org-publish-project-alist `(("blog" :base-directory "~/Source/cleberg.net/" :base-extension "org" :recursive t :publishing-directory "~/Source/cleberg.net/public/" :publishing-function org-html-publish-to-html ;; HTML5 :html-doctype "html5" :html-html5-fancy t ;; Disable some Org's HTML defaults :html-head-include-scripts nil :html-head-include-default-style nil :section-numbers nil :with-title nil ;; Generate sitemap :auto-sitemap t :sitemap-filename "sitemap.org" ;; Customize HTML output :html-divs ((preamble "header" "preamble") (content "main" "content") (postamble "footer" "postamble")) :html-head "" :html-preamble "

%t

" :html-postamble "

Last build: %T

Created with %c

" ) ("static" :base-directory "~/Source/cleberg.net/static/" :base-extension "css\\|txt\\|jpg\\|gif\\|png" :recursive t :publishing-directory "~/Source/cleberg.net/public/" :publishing-function org-publish-attachment) ("cleberg.net" :components ("blog" "static")))) #+end_src * TODO Build Process * TODO Deploy Process