aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhistoria <[not public]>2025-03-29 18:55:51 -0400
committerhistoria <[not public]>2025-03-29 18:55:51 -0400
commit193666c2bba01bb9bc1a21ac270c0affe15ea757 (patch)
treedccbe10b4641f81ad4387648eaf2244f80b894f5
parent8b8344809224b26d43269579ab221298d5dcbb49 (diff)
downloadssg-blog-193666c2bba01bb9bc1a21ac270c0affe15ea757.tar.gz
feat: changed underscores to spaces in index headings
-rwxr-xr-xssg-blog2
1 files changed, 1 insertions, 1 deletions
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 "<h1>$(echo "$category" | sed -E 's/(^|[_ ])([a-z])/\1\U\2/g')</h1>" >> "$output"
+ echo "<h1>$(echo "$category" | sed -E 's/_/ /g; s/(^|[ ])([a-z])/\1\U\2/g')</h1>" >> "$output"
sort -r "/tmp/articles_$category.txt" |
while IFS='|' read -r date title url; do
echo "$date: <a href=\"$base_url/$url\">$title</a><br />" >> "$output"