aboutsummaryrefslogtreecommitdiff
path: root/generate-blog
diff options
context:
space:
mode:
Diffstat (limited to 'generate-blog')
-rwxr-xr-xgenerate-blog8
1 files changed, 8 insertions, 0 deletions
diff --git a/generate-blog b/generate-blog
index 6d3add1..6aaa1be 100755
--- a/generate-blog
+++ b/generate-blog
@@ -27,3 +27,11 @@ do
echo "Generated article at $article_dst_path"
done
+
+for util_path in utils/*
+do
+ title=$(basename "$util_path")
+ util_dst_path="$util_path/index.html"
+ sed -i'' "/<!--UTILSINDEX-->/ a\
+ <li><a href=\"$util_dst_path\">$title</a></li>" index.html
+done