1
0
Fork 0

Move /blog to /post

This commit is contained in:
Tim Van Baak 2024-08-30 09:38:18 -07:00
parent 89410758eb
commit 8735999de3
9 changed files with 8 additions and 8 deletions

View File

@ -15,7 +15,7 @@ import markdown
def get_pubdate(src_path): def get_pubdate(src_path):
pubdate = subprocess.run( 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, capture_output=True,
text=True, text=True,
check=True, check=True,
@ -125,7 +125,7 @@ def main():
fg = FeedGenerator() fg = FeedGenerator()
fg.title(f"alogoulogoi /{feed}/") fg.title(f"alogoulogoi /{feed}/")
fg.link(href=f"https://www.alogoulogoi.com/{feed}/feed.xml") 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.language("en-us")
fg.lastBuildDate(build_date) fg.lastBuildDate(build_date)
for item in sorted(items, key=lambda i: i["pubdate"]): for item in sorted(items, key=lambda i: i["pubdate"]):

View File

@ -6,7 +6,7 @@ title: Home
=> [Projects I've worked on](./project/). => [Projects I've worked on](./project/).
=> [Blog posts](./blog/). => [Posts about things](./post/).
=> [About this site](./about/). => [About this site](./about/).

View File

@ -1,6 +1,6 @@
--- ---
title: The traditional first software engineer blog post 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. 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.

View File

@ -1,6 +1,6 @@
--- ---
title: SHLVL PS1 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. 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.

View File

@ -1,6 +1,6 @@
--- ---
title: Backing up my ZFS NAS to an external drive 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. 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.

View File

@ -1,6 +1,6 @@
--- ---
title: Archiving bookmarks title: Archiving bookmarks
feed: blog feed: post
--- ---
A [comment on Hacker News](https://news.ycombinator.com/item?id=40397848) got me thinking. A [comment on Hacker News](https://news.ycombinator.com/item?id=40397848) got me thinking.

View File

@ -1,5 +1,5 @@
--- ---
title: Blog title: Posts
--- ---
[RSS](./feed.xml) [RSS](./feed.xml)