diff options
author | Carlos Fenollosa <carlos.fenollosa@gmail.com> | 2014-02-27 10:23:38 +0100 |
---|---|---|
committer | Carlos Fenollosa <carlos.fenollosa@gmail.com> | 2014-02-27 10:23:38 +0100 |
commit | 03c70f607845a7fb527091475d4b454326dfa45d (patch) | |
tree | 73a0fcdb17dcfa0f528298524131303161ee7acc | |
parent | fbc9d355deb89ad3f1c8c4ff98408f69623dc83f (diff) | |
parent | d850e6d9d47ae08b4cf191fc370c7a9820ee0d1e (diff) |
Merge pull request #30 from Lex-2008/master
small fixes
-rwxr-xr-x | bb.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ #!/usr/bin/env bash # BashBlog, a simple blog system written in a single bash script -# Copyright: Carles Fenollosa <carles.fenollosa@bsc.es>, 2011-2013 +# Copyright: Carles Fenollosa <carles.fenollosa@bsc.es>, 2011-2014 # With contributions from many others: # https://github.com/carlesfe/bashblog/contributors @@ -592,7 +592,7 @@ list_posts() { n=1 for i in $(ls -t *.html); do if [[ "$i" == "$index_file" ]] || [[ "$i" == "$archive_index" ]]; then continue; fi - line="$n # $(awk '/<h3><a class="ablack" href=".+">/, /<\/a><\/h3>/{if (!/<h3><a class="ablack" href=".+">/ && !/<\/a><\/h3>/) print}' $i) # $(LC_ALL=$date_locale date -r $i +"date_format")" + line="$n # $(awk '/<h3><a class="ablack" href=".+">/, /<\/a><\/h3>/{if (!/<h3><a class="ablack" href=".+">/ && !/<\/a><\/h3>/) print}' $i) # $(LC_ALL=$date_locale date -r $i +"$date_format")" lines="${lines}""$line""\n" # Weird stuff needed for the newlines n=$(( $n + 1 )) done |