aboutsummaryrefslogtreecommitdiff
path: root/generate-blog
diff options
context:
space:
mode:
Diffstat (limited to 'generate-blog')
-rwxr-xr-xgenerate-blog5
1 files changed, 2 insertions, 3 deletions
diff --git a/generate-blog b/generate-blog
index 6aaa1be..668bad8 100755
--- a/generate-blog
+++ b/generate-blog
@@ -30,8 +30,7 @@ done
for util_path in utils/*
do
- title=$(basename "$util_path")
- util_dst_path="$util_path/index.html"
+ title=$(basename "$util_path" | tr '_' ' ')
sed -i'' "/<!--UTILSINDEX-->/ a\
- <li><a href=\"$util_dst_path\">$title</a></li>" index.html
+ <li><a href=\"$util_path\">$title</a></li>" index.html
done