diff options
| author | Christian Cleberg <[email protected]> | 2024-03-04 22:34:28 -0600 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2024-03-04 22:34:28 -0600 |
| commit | c71a52cb7a80a102e58bd5465e994225ea98c44f (patch) | |
| tree | fcbb56dc023c1e490df70478e696041c566e58b4 /blog/org-blog/index.org | |
| parent | 566a5ce4ec810bf5f4a941fb0c27fa215a0ad458 (diff) | |
| download | cleberg.net-c71a52cb7a80a102e58bd5465e994225ea98c44f.tar.gz cleberg.net-c71a52cb7a80a102e58bd5465e994225ea98c44f.tar.bz2 cleberg.net-c71a52cb7a80a102e58bd5465e994225ea98c44f.zip | |
initial migration to test org-mode
Diffstat (limited to 'blog/org-blog/index.org')
| -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 |
