fix live update bug

This commit is contained in:
Antoine Amarilli 2012-02-26 14:06:16 +01:00 committed by p4bl0
parent 198bb426fd
commit a0487b63d9
1 changed files with 3 additions and 1 deletions

View File

@ -288,6 +288,7 @@ replace_foreach () {
}
generate_article() {
temp=`mktemp fugitiveXXXXXX`
art="${1#$articles_dir/}"
title=`get_article_title "$art"`
cat "$templates_dir/article.html" | \
@ -296,7 +297,8 @@ generate_article() {
replace_str "blog_url" "$blog_url" | \
replace_commit_info "-1" | \
replace_article_info "$art" | \
sed "/^[[:space:]]*$/d" > "$public_dir/$art.html"
sed "/^[[:space:]]*$/d" > "$temp"
mv "$temp" "$public_dir/$art.html"
}
regenerate_previous_and_next_article_maybe() {