#+SETUPFILE: ../../../template/level-2.org
#+TITLE: Blog format cleanup and thoughts along the way
#+DATE: <2021-01-08 Fri 00:03>
#+AUTHOR: vaeringjar
#+EMAIL: vaeringjar@land
#+DESCRIPTION: Migrate more old posts to org format.
#+KEYWORDS: dev


* WIP - 2021-01-08

I noticed that my RSS feed has blown up each time I fix the format of
my legacy blog posts. Some still have the old php, and others the not
as old markdown. So I'll keep updating this one until I finish this
round. Hopefully that keeps this one first and the others last.


* WIP - 2021-01-09

I started using pandoc again. But even after I do, I find that I need
to fix the org export settings, eg the meta data for each file.

For each update, I will just tick the second for the time stamp, but I
will add a new heading commentary. I do this purely for posterity...

I don't really like most of the structure of the blog. I also have
quite a few files that could probably go away. One of them only has a
single link back in 2018 when Fenris Punk still did not exist yet
other than in concept.

I also went down a rabbit hole looking at different ways to ensure
portability for emacs scripts. I want to start working on my ssg
again. First I ran into a dead end with a short but nice rss feed
generator. I decided to still not use ox-rss. I like webfeeder, but I
didn't get around to it. Then, back to portability, I remembered
seeing something on rosettacode about setting the shebang to sh and
exec'ing the actual script for python. I just don't like the way emacs
handles stdout and stderr, though I suppose I could probably override
it.


** main.el

#+BEGIN_SRC lisp
#!/bin/sh
":"; exec emacs --script "$0" "-Q" "$@" # -*- mode: emacs-lisp; lexical-binding: t; -*-

(add-to-list 'load-path (expand-file-name "./"))
(load "foo")

(message "Hello world")
(message "argv: %S" argv)
#+END_SRC


** foo.el

#+BEGIN_SRC lisp
(message "Foo!")
#+END_SRC


* WIP - 2021-01-10

Some of these blog posts came from two blog iterations ago. For one of
them, I ended up needing to use pandoc to convert to two different
versions to grab the html to org and the markdown to org,
effectively. Some of the blog posts used to be blog pages that I used
to achively update. Some of them don't even really seem to matter
anymore, but I like seeing how my opinions have changed over the
years.


* WIP - 2021-01-11

Well, I finished the main job of converting, finally. I have written a
ton of garbage... but I'll keep it for posterity.


* References

- https://gist.github.com/lunaryorn/91a7734a8c1d93a8d1b0d3f85fe18b1e
- https://www.gnu.org/software/emacs/manual/html_node/emacs/Initial-Options.html#Initial-Options
- https://gitlab.com/ambrevar/emacs-webfeeder
- https://rosettacode.org/wiki/Multiline_shebang
