diff options
author | Christian Cleberg <hello@cleberg.net> | 2024-03-04 22:34:28 -0600 |
---|---|---|
committer | Christian Cleberg <hello@cleberg.net> | 2024-03-04 22:34:28 -0600 |
commit | 797a1404213173791a5f4126a77ad383ceb00064 (patch) | |
tree | fcbb56dc023c1e490df70478e696041c566e58b4 /blog/org-blog | |
parent | 3db79e7bb6a34ee94935c22d7f0e18cf227c7813 (diff) | |
download | cleberg.net-797a1404213173791a5f4126a77ad383ceb00064.tar.gz cleberg.net-797a1404213173791a5f4126a77ad383ceb00064.tar.bz2 cleberg.net-797a1404213173791a5f4126a77ad383ceb00064.zip |
initial migration to test org-mode
Diffstat (limited to 'blog/org-blog')
-rw-r--r-- | blog/org-blog/index.org | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/blog/org-blog/index.org b/blog/org-blog/index.org new file mode 100644 index 0000000..b806ae3 --- /dev/null +++ b/blog/org-blog/index.org @@ -0,0 +1,71 @@ +#+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 "<link rel='stylesheet' href='/styles.css' type='text/css'>" + :html-preamble "<nav class='site-nav' aria-label='site-nav' role='navigation'> + <ul> + <li><a href='/'>Home</a></li> + <li><a href='/blog/'>Blog</a></li> + <li><a href='/services/'>Services</a></li> + <li><a href='/wiki/'>Wiki</a></li> + </ul></nav> + <h1>%t</h1> + <time datetime='%d'>%d</time>" + :html-postamble " + <p>Last build: %T</p> + <p>Created with %c</p>" + ) + + ("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 |