From dbae9472bd08b9e5edd5bbdc5dcd8a0781010511 Mon Sep 17 00:00:00 2001 From: p4bl0 Date: Sun, 25 Jul 2010 18:11:03 +0200 Subject: reorganised includes in default templates --- post-commit.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'post-commit.sh') diff --git a/post-commit.sh b/post-commit.sh index d4894d8..4d9cd25 100644 --- a/post-commit.sh +++ b/post-commit.sh @@ -266,6 +266,7 @@ generate_article() { cat "$templates_dir/article.html" | \ replace_file "article_content" "`get_article_content \"$art\"`" | \ replace_includes | \ + replace_str "page_title" "`get_article_title \"$art\"`" | \ replace_commit_info "-1" | \ replace_article_info "$art" | \ sed "/^\s*$/d" > "$public_dir/$art.html" @@ -339,6 +340,7 @@ if [ $modification -gt 0 ]; then replace_foreach "article" "$articles_sorted" | \ replace_foreach "commit" "$commits" | \ replace_empty_article_info | \ + replace_str "page_title" "archives" | \ replace_commit_info "-1" | \ sed "/^\s*$/d" > "$public_dir/archives.html" echo "done." -- cgit v1.2.3