~dricottone/blog

ref: 4c400159844b0bf539a9595907708781b2c61114 blog/content/posts/cleaning_up.md -rw-r--r-- 2.1 KiB
4c400159Dominic Ricottone New post 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
title: Cleaning Up
date: "2023-11-11T20:22:52+00:00"
draft: false
---

I've restructured the way permalinks are generated.
While I do prefer underscores for file names,
URLS are decidedly cleaner when using dashes.
Luckily Hugo already has a concept for this (`:slug`) so it's as simple as
setting the permalink template with that 'variable'.

To prevent breakage of existing links, I've set up aliases.
That's another very convenient feature of Hugo.
I've also seems some recipes online for creating aliases automatically.
I'm not currently sold on the idea of setting up named aliases for all posts
going forward,
but I'll revisit that in the new year.

And since I'm doing all of that, I decided it's also time to organize
permalinks based on publication date.

----

I've significantly reworked my development workflow in the last couple months.
It's become a headache to try and keep all of my internal toolchains,
script interpreters, and document processors up-to-date across all of the
hosts I use.
For a long time, I liked to think that I sidestepped this issue by using POSIX
scripts.
But *apparently several distros feel otherwise*.

It's not even Red Hat that I'm specifically frustrated at right now.
It's come to my attention that `ed` isn't installed by default on Ubuntu.
Now I know, few people care about `ed`, I'm in an extreme minority.
It's still POSIX.

So I've centralized all of those installations to a single host
*(on public internet,
but without any compromisable servers running,
and requiring an SSH key for login)*,
and it `rsync`s built files to a separate web server only accessible on my
VLAN.

Anyway, that's prompted a gradual revisiting of all of my `Makefile`s.
It's sometimes interesting to see how my approach to those has changed over
time.
Clearly 4 years ago I was obsessed with parameterizing them.
I think my current attitude is to keep them file-oriented, and anything more
complicated is pulled out into a separate script.
Many of my projects now feature a top-level `scripts` folder.
*(This is also why keeping my script interpreters up-to-date was such a
hastle.)*