From 8735999de3323ffeb9642c149216c1af0b07bb18 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Fri, 30 Aug 2024 09:38:18 -0700 Subject: [PATCH] Move /blog to /post --- build.py | 4 ++-- src/index.md | 2 +- src/{blog => post}/2023/blog-start.md | 2 +- src/{blog => post}/2023/index.md | 0 src/{blog => post}/2023/shlvl.md | 2 +- src/{blog => post}/2023/zfs-nas-backup.md | 2 +- src/{blog => post}/2024/bookmarks.md | 2 +- src/{blog => post}/2024/index.md | 0 src/{blog => post}/index.md | 2 +- 9 files changed, 8 insertions(+), 8 deletions(-) rename src/{blog => post}/2023/blog-start.md (99%) rename src/{blog => post}/2023/index.md (100%) rename src/{blog => post}/2023/shlvl.md (99%) rename src/{blog => post}/2023/zfs-nas-backup.md (99%) rename src/{blog => post}/2024/bookmarks.md (99%) rename src/{blog => post}/2024/index.md (100%) rename src/{blog => post}/index.md (95%) diff --git a/build.py b/build.py index 5c282d8..99727fd 100755 --- a/build.py +++ b/build.py @@ -15,7 +15,7 @@ import markdown def get_pubdate(src_path): pubdate = subprocess.run( - ["git", "log", "--diff-filter=A", "--format=%aI", "--", src_path], + ["git", "log", "--follow", "--diff-filter=A", "--format=%aI", "--", src_path], capture_output=True, text=True, check=True, @@ -125,7 +125,7 @@ def main(): fg = FeedGenerator() fg.title(f"alogoulogoi /{feed}/") fg.link(href=f"https://www.alogoulogoi.com/{feed}/feed.xml") - fg.description("Blog posts from alogoulogoi") + fg.description("Posts from alogoulogoi") fg.language("en-us") fg.lastBuildDate(build_date) for item in sorted(items, key=lambda i: i["pubdate"]): diff --git a/src/index.md b/src/index.md index f34e329..92cd5cc 100644 --- a/src/index.md +++ b/src/index.md @@ -6,7 +6,7 @@ title: Home => [Projects I've worked on](./project/). -=> [Blog posts](./blog/). +=> [Posts about things](./post/). => [About this site](./about/). diff --git a/src/blog/2023/blog-start.md b/src/post/2023/blog-start.md similarity index 99% rename from src/blog/2023/blog-start.md rename to src/post/2023/blog-start.md index 6db7b16..c1752d5 100644 --- a/src/blog/2023/blog-start.md +++ b/src/post/2023/blog-start.md @@ -1,6 +1,6 @@ --- title: The traditional first software engineer blog post -feed: blog +feed: post --- It seems appropriate for a first post on a blog to explain why the blog exists and how it is built. For people other than software engineers, the latter question is typically not very interesting because the blog is on a blogging site like WordPress or built with a CMS like WordPress. Software engineers, however, have a habit of doing everything from scratch, so they also explain their hosting choice, Emacs plugins, operating system version, and WordPress deployment. diff --git a/src/blog/2023/index.md b/src/post/2023/index.md similarity index 100% rename from src/blog/2023/index.md rename to src/post/2023/index.md diff --git a/src/blog/2023/shlvl.md b/src/post/2023/shlvl.md similarity index 99% rename from src/blog/2023/shlvl.md rename to src/post/2023/shlvl.md index 2729ccc..8c6e9aa 100644 --- a/src/blog/2023/shlvl.md +++ b/src/post/2023/shlvl.md @@ -1,6 +1,6 @@ --- title: SHLVL PS1 -feed: blog +feed: post --- I often find myself in a subshell, usually because of `nix-shell` or `nix develop`, but also sometimes when I run `bash` from `bash` instead of using `pushd` and `popd`. The prompting in Nix shells can be inconsistent betwen tools or versions: `nix-shell` overrides the prompt to `[nix-shell:cwd]$`, but `nix shell`, the `nix` command's replacement for `nix-shell -p`, doesn't change `PS1` at all. diff --git a/src/blog/2023/zfs-nas-backup.md b/src/post/2023/zfs-nas-backup.md similarity index 99% rename from src/blog/2023/zfs-nas-backup.md rename to src/post/2023/zfs-nas-backup.md index e0a08db..7340cbd 100644 --- a/src/blog/2023/zfs-nas-backup.md +++ b/src/post/2023/zfs-nas-backup.md @@ -1,6 +1,6 @@ --- title: Backing up my ZFS NAS to an external drive -feed: blog +feed: post --- The SSD on my sole Windows machine died. Fortunately, I didn't lose anything important; I *did* lose some things, but I can live without them. Most of my important documents were already stored on a network server: a Raspberry Pi 4 running NixOS and attached to a drive dock with two 4 TB drives configured in a ZFS mirror. This was a great occasion to make a backup: I could use the drive dock to confirm the SSD was dead, and given the circumstances I definitely wanted a recent backup before taking the NAS drives out of the dock. diff --git a/src/blog/2024/bookmarks.md b/src/post/2024/bookmarks.md similarity index 99% rename from src/blog/2024/bookmarks.md rename to src/post/2024/bookmarks.md index 187379c..ca6ce53 100644 --- a/src/blog/2024/bookmarks.md +++ b/src/post/2024/bookmarks.md @@ -1,6 +1,6 @@ --- title: Archiving bookmarks -feed: blog +feed: post --- A [comment on Hacker News](https://news.ycombinator.com/item?id=40397848) got me thinking. diff --git a/src/blog/2024/index.md b/src/post/2024/index.md similarity index 100% rename from src/blog/2024/index.md rename to src/post/2024/index.md diff --git a/src/blog/index.md b/src/post/index.md similarity index 95% rename from src/blog/index.md rename to src/post/index.md index b24562c..4068930 100644 --- a/src/blog/index.md +++ b/src/post/index.md @@ -1,5 +1,5 @@ --- -title: Blog +title: Posts --- [RSS](./feed.xml)