aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"