diff options
author | Aleksei Shpakovskii <alekseis@opera.com> | 2014-02-24 18:05:55 +0100 |
---|---|---|
committer | Aleksei Shpakovskii <alekseis@opera.com> | 2014-02-24 18:05:55 +0100 |
commit | 1c4469005b77a55868de0d3bee8dfec2fff9d86e (patch) | |
tree | 59a2ce09147b5faa5eda6ac05b6428c1d062cb78 /bb.sh | |
parent | 549805d9e323b538ccfeca53f6a774c468fe2792 (diff) |
use template for all_posts.html page title
Diffstat (limited to 'bb.sh')
-rwxr-xr-x | bb.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -170,6 +170,8 @@ global_variables() { template_comments="Comments?" # "View more posts" (used on bottom of index page as link to archive) template_archive="View more posts" + # "All posts" (title of archive page) + template_archive_title="All posts" # "Back to the index page" (used on archive page, it is link to blog index) template_archive_index_page="Back to the index page" # "Subscribe" (used on bottom of index page, it is link to RSS feed) @@ -525,7 +527,7 @@ all_posts() { contentfile="$archive_index.$RANDOM" done - echo "<h3>All posts</h3>" >> "$contentfile" + echo "<h3>$template_archive_title</h3>" >> "$contentfile" echo "<ul>" >> "$contentfile" for i in $(ls -t *.html); do if [[ "$i" == "$index_file" ]] || [[ "$i" == "$archive_index" ]]; then continue; fi |