💾 Archived View for diesenbacher.net › blog › entries › setup-of-my-blog.gmi captured on 2023-06-14 at 13:55:40. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

➡️ Next capture (2024-05-10)

-=-=-=-=-=-=-

Setup of my blog (with gemtext)

Blogging in emacs

Most boring, if you have a look at all this useless amateur blogs, is their first post about their fancy and mostly unecessary complex setup of their blogs / phlogs / gemlogs, or however they call their opus novum.

So - lets follow this stupid tradition, as today I tried finally to set up a kind of blog in emacs utilizing org-mode. I love [emacs] and [org-mode] - so, using them for blogging is quite a natural choice. Not an outstanding path to go, as many nerds have a similar setup.

emacs

org-mode

Including gemini as publishing channel

The kind of challenge - I want to publish my great blog with dubious content on at least the following channels:

Happily - I found a back-end for orgmode, that (should) be capable of publishing to gemtext: [ox-gemini].

If you are aware of gemtext, you'll probably agree, that this is quite a thing, because of the difference (not saying limitations) of gemtext compared to org structure or rather html.

Setting this up was quite simple - just adding a publishing-function to the alist org-publish-project-alist, f.e.:

;;... excerpt out of my org-publish-project-alist:
("blog-main-gemini"
 :base-directory "~/org/blog/src/"
 :base-extension "org"
 :publishing-directory "~/org/blog/publish-gmi/"
 :recursive t
 :publishing-function  (org-gemini-publish-to-gemini)
 :headline-levels 3  ; reduced to 2, as gemtext is limited to #, ## and ### 
 :auto-preamble nil
 :with-toc nil)
;;...

ox-gemini deals quite well with links, during the text an anchor is shown in square brackets, and at the end of the section actual gemtext-links are placed.

The only improvements I would like to have, f.e. if there is just one link in a line, or already an enumeration, that actual gemlinks would be generated. AND - support of footnotes.

ox-gemini

Helpful links

taingrams post about blogging in org-mode

kansis post about blogging

ox-gemini

Footnotes

_________

[1]