mirror of
https://git.ludikovsky.name/git/fugitive.git
synced 2024-08-21 18:45:26 +02:00
Fixed regenerating articles
This commit is contained in:
parent
37539e6ff6
commit
c22b44d0b0
|
@ -308,6 +308,7 @@ regenerate_previous_and_next_article_maybe() {
|
||||||
echo -n "[fugitive] Regenerating $public_dir/$1.html"
|
echo -n "[fugitive] Regenerating $public_dir/$1.html"
|
||||||
echo -n " (as previous article) from $articles_dir/$1... "
|
echo -n " (as previous article) from $articles_dir/$1... "
|
||||||
generate_article "$articles_dir/$1"
|
generate_article "$articles_dir/$1"
|
||||||
|
gzip -9kfn "$public_dir/$1.html"
|
||||||
echo "done."
|
echo "done."
|
||||||
echo "$1" >> "$generated_files"
|
echo "$1" >> "$generated_files"
|
||||||
fi
|
fi
|
||||||
|
@ -316,6 +317,7 @@ regenerate_previous_and_next_article_maybe() {
|
||||||
echo -n "[fugitive] Regenerating $public_dir/$2.html"
|
echo -n "[fugitive] Regenerating $public_dir/$2.html"
|
||||||
echo -n " (as next article) from $articles_dir/$2... "
|
echo -n " (as next article) from $articles_dir/$2... "
|
||||||
generate_article "$articles_dir/$2"
|
generate_article "$articles_dir/$2"
|
||||||
|
gzip -9kfn "$public_dir/$2.html"
|
||||||
echo "done."
|
echo "done."
|
||||||
echo "$2" >> "$generated_files"
|
echo "$2" >> "$generated_files"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue