~dricottone/blog

ref: 5889487670bfb940ccd9dbb930a01413d6e16414 blog/scripts/bsky.bash -rwxr-xr-x 1.3 KiB
Portability bug fixes

Now building the site from a Debian-derivative system, as opposed to my
Arch PC. This has made several predictable and one very surprising bug.

First of all, `gawk` has to be specified rather than `/bin/awk` now.
This is a portable change in that `gawk` can be installed on practically
any system and is reliably found at `/usr/bin/gawk`. My mistake for
thinking all Linux distros used `gawk` for system `awk`...

The LaTeX distro for Debian-derivative systems is confusingly broken up,
and best solved by just relying on apt install `latex-cjk-all
texlive-lang-cjk` to work. As a part of this, I broke up the
PDF generation process into separate TeX and PDF file recipes.

I forgot that, due to ignored files, a certain directory wasn't created
by cloning the repo. Oops. Now that directory is explicitly created by a
recipe.

Lastly, it seems that there's an important difference in how escaped
newlines are interpretted in shell variables between `bash` and `dash`.
No idea what the actual reasoning is, but making `bsky.sh` into
`bsky.bash` works.
Linking to socials

A webring is added to the bottom of all blog posts and the home page.
This is powered by openring and stylized as a vertical list against a
light blue background (same blue as sent messages on Chat page).

My recent posts on bluesky are added to the home page. These are
stylized as received chat messages per the Chat page.

My most listened to songs (in alst 30 days) are listed on the home page.
This is an unstylized ordered list.

Minor change to the way width is applied to horizontal breaks.