aboutsummaryrefslogtreecommitdiff
path: root/generate
diff options
context:
space:
mode:
Diffstat (limited to 'generate')
-rwxr-xr-xgenerate4
1 files changed, 2 insertions, 2 deletions
diff --git a/generate b/generate
index d13dac6..1bea8d3 100755
--- a/generate
+++ b/generate
@@ -37,7 +37,7 @@ base_template < school.template.html |
base_template_link 'style.css' > school.html
# Generate blog posts
-for post_path in "$(find "$blog_path" -name '*.md')"
+for post_path in "$blog_path"/*.md
do
post_dst_path=$(echo "$post_path" | sed 's_.md_.html_')
@@ -68,5 +68,5 @@ do
sed -i'' "/<!-- UTILSINDEX -->/ a\
<li><a href=\"$util_path\">$title</a></li>" index.html
- echo "Generated utility at $util_path"
+ echo "Generated utility at $util_path/index.html"
done