diff options
| -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" |
