diff options
| author | historia <[not public]> | 2025-03-29 18:55:51 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2025-03-29 18:55:51 -0400 |
| commit | 193666c2bba01bb9bc1a21ac270c0affe15ea757 (patch) | |
| tree | dccbe10b4641f81ad4387648eaf2244f80b894f5 | |
| parent | 8b8344809224b26d43269579ab221298d5dcbb49 (diff) | |
| download | ssg-blog-193666c2bba01bb9bc1a21ac270c0affe15ea757.tar.gz | |
feat: changed underscores to spaces in index headings
| -rwxr-xr-x | ssg-blog | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |
