From 193666c2bba01bb9bc1a21ac270c0affe15ea757 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sat, 29 Mar 2025 18:55:51 -0400 Subject: feat: changed underscores to spaces in index headings --- ssg-blog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssg-blog b/ssg-blog index 478e317..0e1418c 100755 --- a/ssg-blog +++ b/ssg-blog @@ -232,7 +232,7 @@ render_index() { done if [ -f "/tmp/articles_$category.txt" ]; then - echo "

$(echo "$category" | sed -E 's/(^|[_ ])([a-z])/\1\U\2/g')

" >> "$output" + echo "

$(echo "$category" | sed -E 's/_/ /g; s/(^|[ ])([a-z])/\1\U\2/g')

" >> "$output" sort -r "/tmp/articles_$category.txt" | while IFS='|' read -r date title url; do echo "$date: $title
" >> "$output" -- cgit v1.2.3