{{ .Title }}
-{{ .Date | time.Format ":date_medium" }}
-{{ .Summary }}
- -diff --git a/.aspell.en.pws b/.aspell.en.pws index 180827b..2ceb541 100644 --- a/.aspell.en.pws +++ b/.aspell.en.pws @@ -68,3 +68,4 @@ tok toks UI Nephi +lol diff --git a/.githooks/pre-commit b/.githooks/pre-commit index c37c4e3..8711b96 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -5,6 +5,12 @@ NC='\033[0m' # No Color echo "Running pre-commit checks..." +# Auto-update lastmod in content files (non-blocking) +# Runs before other checks so lint/spell run on updated files +if [ -x "$(dirname "$0")/update-lastmod.sh" ]; then + "$(dirname "$0")/update-lastmod.sh" || echo "⚠️ lastmod update script encountered an issue" +fi + # Track overall success/failure OVERALL_RESULT=0 diff --git a/.githooks/update-lastmod.sh b/.githooks/update-lastmod.sh new file mode 100755 index 0000000..d0548e1 --- /dev/null +++ b/.githooks/update-lastmod.sh @@ -0,0 +1,37 @@ +#!/usr/bin/env bash +# Auto-update lastmod field in staged content files +# This script should never block a commit - errors are warnings only + +update_lastmod() { + local file="$1" + + # Generate RFC3339 timestamp with timezone (e.g., 2025-11-08T16:19:07-06:00) + local tz_offset=$(date +%z) + local tz_formatted="${tz_offset:0:3}:${tz_offset:3:2}" # Insert colon: -0600 -> -06:00 + local now=$(date +%Y-%m-%dT%H:%M:%S)${tz_formatted} + + # Only update if file has lastmod field + if grep -q "^lastmod:" "$file"; then + # Cross-platform sed -i (macOS vs Linux) + if [[ "$OSTYPE" == "darwin"* ]]; then + sed -i '' "s/^lastmod:.*$/lastmod: $now/" "$file" + else + sed -i "s/^lastmod:.*$/lastmod: $now/" "$file" + fi + git add "$file" + echo " Updated lastmod in $file" + fi +} + +# Get staged content files +staged_files=$(git diff --cached --name-only --diff-filter=ACM | grep -E '^content/.*\.md$' || true) + +if [ -z "$staged_files" ]; then + exit 0 +fi + +for file in $staged_files; do + if [ -f "$file" ]; then + update_lastmod "$file" || echo "Warning: Failed to update lastmod in $file" + fi +done diff --git a/archetypes/projects.md b/archetypes/projects.md new file mode 100644 index 0000000..bca5d4c --- /dev/null +++ b/archetypes/projects.md @@ -0,0 +1,10 @@ +--- +date: {{ .Date }} +description: "" +lastmod: {{ .Date }} +showTableOfContents: true +type: "projects" +title: "{{ replace .Name "-" " " | title }}" +active: true +tags: [] +--- diff --git a/config.toml b/config.toml index 6ac44b4..0c33491 100644 --- a/config.toml +++ b/config.toml @@ -29,7 +29,8 @@ togglePreviousAndNextButtons = "true" avatarUrl = "/images/fosscat_icon.png" avatarSize = "size-s" numberPostsOnHomePage = 5 -showPostsOnHomePage = "recent" # "popular" +showPostsOnHomePage = "recent" +numberTilsOnHomePage = 3 [params.meta] favicon = true @@ -48,17 +49,17 @@ name = "Home" url = "/" weight = 1 [[menu.main]] +name = "Posts" +url = "/posts/" +weight = 2 +[[menu.main]] identifier = "tils" name = "TIL's" url = "/tils/" -weight = 2 +weight = 3 [[menu.main]] name = "Projects" url = "/projects/" -weight = 3 -[[menu.main]] -name = "Posts" -url = "/posts/" weight = 4 [[menu.main]] name = "Tags" @@ -79,4 +80,4 @@ pre = "" # Enable raw HTML [markup.goldmark.renderer] -unsafe= true +unsafe=true diff --git a/content/posts/why-i-let-go-of-the-rod.md b/content/posts/why-i-let-go-of-the-rod.md index 1918c40..97b27b4 100644 --- a/content/posts/why-i-let-go-of-the-rod.md +++ b/content/posts/why-i-let-go-of-the-rod.md @@ -16,8 +16,8 @@ I recognize it's important to establish some things before heading out any furth reaching is extremely broad. So, before I get in to tell my tall tale, lets clear the air so I don't run the risk of losing anyone along the way. -- As of the time of writing, it is commonly held preference not say Mormons, and instead say members of the Church of -Jesus Christ of Latter Day Saints. +- As of the time of writing, it is a commonly held preference not to say Mormons, and instead say members of the Church +of Jesus Christ of Latter Day Saints. - I'm not writing this to persuade anyone. This is my story. If you feel attacked or validated by my experience, I am going to put that onus on you, the reader, to draw what conclusions you deem appropriate. @@ -26,11 +26,11 @@ typically comes from friends and family still a part of the faith, which I alway whirling a bit when you leave the Church, so hopefully this can clarify things for both of us. - If you the reader don't know much about the (more commonly recognized) "Mormon" faith, then this post may be hard to follow. It will waste no time explaining concepts and assume the reader is familiar with the doctrines, history, -and positions of the church. I will do my best to delineate between commonly held **facts** and my _opinions_ cite my -sources. +and positions of the church. I will do my best to delineate between commonly held **facts** and my _opinions_ and cite +my sources. - If you the reader take issue with how I've portrayed things, please reach out! I mean it. There's no real way to -express this through rendered HTML on your lit array of pixels, but its true. I feel strongly it is important to always -keep these conversations open. +express my sincerity through high contrast pixels on your device of choice, but its true. I feel strongly it is +important to always keep these conversations open. _Hopefully_ I haven't lost you, dear reader, and I want to thank you in advance for any of the effort you take to understand and empathize with me. You keep my faith in humanity <3 @@ -39,7 +39,11 @@ So, without further ado, lets "begin at the very beginning" ## "Born of goodly parents" -I grew up in a loving home with parents that did their best to give us five kids a great life. I'm the middle kid, the +I grew up in a loving home with parents that did their best to give us kids a great life. I'm the middle kid, the glue you might say *smirk. My involvement in the church informed much of my life. My friends were typically the boys in my ward's Sunday school class or in my boy scout troop. My views of the world were most entirely shaped by my religion. -I remember feeling immense privilege and dread thinking that I happened to live in the neighborhood of the family that +There was some anxiety as a kid knowing whether or not someone was a member because it meant Friends houses that weren't +members of the church felt unsafe. +When I was 8 or 9, I remember feeling immense responsibility, mixed with privilege and dread, thinking that God had +restored His One True Church to my neighborhood! Relief washed over me when I learned that there were actually millions +of us, not just the two hundred in my ward. lol. diff --git a/content/projects.md b/content/projects.md deleted file mode 100644 index 142df51..0000000 --- a/content/projects.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -title: "Projects" -type: "page" -lastmod: 2025-10-03T16:19:07-06:00 ---- - -Worked on frequently, updated on occasion. - -- # [Game in Zig & SDL2 ⚡️](/projects/zig-sdl) - - - - diff --git a/content/projects/_index.md b/content/projects/_index.md new file mode 100644 index 0000000..3ceb0ed --- /dev/null +++ b/content/projects/_index.md @@ -0,0 +1,8 @@ +--- +title: "Projects" +--- + +Worked on frequently, updated on occasion. + +As a person with high openness and lower than average follow-thru, this may more just be a catalog of my passing +interests and hobbies! diff --git a/content/projects/zig-sdl.md b/content/projects/zig-sdl.md index 52a5428..0857ad2 100644 --- a/content/projects/zig-sdl.md +++ b/content/projects/zig-sdl.md @@ -1,14 +1,15 @@ --- title: "SDL Game in Zig" image: "" -type: "page" +type: "projects" +active: false date: "2025-01-10" lastmod: 2025-10-03T16:19:07-06:00 --- # Zig Game Dev with SDL2 -I'm (was) making a game in Zig! Currently getting back into Zig. +I (was) making a game in Zig! Currently getting back into Zig. Watch me [stream on Twitch](https://twitch.tv/fosscat), or the embed below! diff --git a/content/tils/_index.md b/content/tils/_index.md index 6dd49ce..02c99d3 100644 --- a/content/tils/_index.md +++ b/content/tils/_index.md @@ -3,8 +3,8 @@ title: "Today I Learned" type: "til" --- -Anyday I learn something cool, I will write up a brief TIL (Today I Learned) post. +Any day I learn something cool (and think to write it down), I will write up a brief Today I Learned (TIL) post. -If they help you, great! But I think having a collection of my learnings will be pretty neat just for myself! +If they help you, great! But I think having a collection for myself will be pretty neat! # My TILs diff --git a/content/tils/we-created-dogs-and-dogs-created-us.md b/content/tils/we-created-dogs-and-dogs-created-us.md index c87a9dc..c94288d 100644 --- a/content/tils/we-created-dogs-and-dogs-created-us.md +++ b/content/tils/we-created-dogs-and-dogs-created-us.md @@ -1,6 +1,6 @@ --- date: 2025-10-03T16:19:07-06:00 -description: "" +description: "We were made for dogs, and they us." lastmod: 2025-10-03T16:19:07-06:00 showTableOfContents: true type: "tils" diff --git a/layouts/_default/term.html b/layouts/_default/term.html index 264f41d..9754f19 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -1,18 +1,18 @@ {{ define "main" }}
{{ .Date | time.Format ":date_medium" }}
+{{ .Params.Description }}
+No projects yet.
+ {{ end }} ++ Started {{ dateFormat (or .Site.Params.dateFormat "January 2, 2006") .Date }} + {{ if lt .Date .Lastmod }} | Updated {{ dateFormat (or .Site.Params.dateFormat "January 2, 2006") .Lastmod }}{{ end }} +
+ + +{{ .Params.image_caption }}
+