mirror of
https://git.ludikovsky.name/git/fugitive.git
synced 2024-10-05 15:35:29 +02:00
do not removed empty lines in article anymore
This commit is contained in:
parent
15b9581220
commit
debacf88fd
|
@ -299,8 +299,7 @@ generate_article() {
|
||||||
replace_str "page_title" "$title" | \
|
replace_str "page_title" "$title" | \
|
||||||
replace_str "blog_url" "$blog_url" | \
|
replace_str "blog_url" "$blog_url" | \
|
||||||
replace_commit_info "-1" | \
|
replace_commit_info "-1" | \
|
||||||
replace_article_info "$art" | \
|
replace_article_info "$art" > "$public_dir/$art.html"
|
||||||
sed "/^[[:space:]]*$/d" > "$public_dir/$art.html"
|
|
||||||
if [ "$preproc" != "" ]; then
|
if [ "$preproc" != "" ]; then
|
||||||
echo "$title" > "$1"
|
echo "$title" > "$1"
|
||||||
cat "$body" >> "$1"
|
cat "$body" >> "$1"
|
||||||
|
@ -377,8 +376,7 @@ if [ $modification -gt 0 ]; then
|
||||||
replace_empty_article_info | \
|
replace_empty_article_info | \
|
||||||
replace_str "page_title" "archives" | \
|
replace_str "page_title" "archives" | \
|
||||||
replace_str "blog_url" "$blog_url" | \
|
replace_str "blog_url" "$blog_url" | \
|
||||||
replace_commit_info "-1" | \
|
replace_commit_info "-1" > "$public_dir/archives.html"
|
||||||
sed "/^[[:space:]]*$/d" > "$public_dir/archives.html"
|
|
||||||
echo "done."
|
echo "done."
|
||||||
echo -n "[fugitive] Generating $public_dir/feed.xml... "
|
echo -n "[fugitive] Generating $public_dir/feed.xml... "
|
||||||
last_5_articles=`mktemp fugitiveXXXXXX`
|
last_5_articles=`mktemp fugitiveXXXXXX`
|
||||||
|
@ -391,8 +389,7 @@ if [ $modification -gt 0 ]; then
|
||||||
replace_foreach "commit" "$last_5_commits" | \
|
replace_foreach "commit" "$last_5_commits" | \
|
||||||
replace_str "page_title" "feed" | \
|
replace_str "page_title" "feed" | \
|
||||||
replace_str "blog_url" "$blog_url" | \
|
replace_str "blog_url" "$blog_url" | \
|
||||||
replace_commit_info "-1" | \
|
replace_commit_info "-1" > "$public_dir/feed.xml"
|
||||||
sed "/^[[:space:]]*$/d" > "$public_dir/feed.xml"
|
|
||||||
echo "done."
|
echo "done."
|
||||||
rm "$last_5_articles" "$last_5_commits"
|
rm "$last_5_articles" "$last_5_commits"
|
||||||
echo -n "[fugitive] Using last published article as index page... "
|
echo -n "[fugitive] Using last published article as index page... "
|
||||||
|
|
Loading…
Reference in a new issue