diff --git a/bb.sh b/bb.sh index d80e415..a9d4cf7 100755 --- a/bb.sh +++ b/bb.sh @@ -297,9 +297,9 @@ create_html_page() { echo "$title" >> "$filename" echo '' >> "$filename" if [ "$timestamp" == "" ]; then - echo '
'$(LC_ALL=date_locale date +"$date_format")' — ' >> "$filename" + echo '
'$(LC_ALL=$date_locale date +"$date_format")' — ' >> "$filename" else - echo '
'$(LC_ALL=date_locale date +"$date_format" --date="$timestamp") ' — ' >> "$filename" + echo '
'$(LC_ALL=$date_locale date +"$date_format" --date="$timestamp") ' — ' >> "$filename" fi echo "$global_author
" >> "$filename" echo '' >> "$filename" # This marks the text body, after the title, date... @@ -434,7 +434,7 @@ all_posts() { title="$(awk '/

/, /<\/a><\/h3>/{if (!/

/ && !/<\/a><\/h3>/) print}' $i)" echo -n '
  • '$title' —' >> "$contentfile" # Date - date="$(LC_ALL=date_locale date -r "$i" +"$date_format")" + date="$(LC_ALL=$date_locale date -r "$i" +"$date_format")" echo " $date
  • " >> "$contentfile" done echo "" @@ -493,7 +493,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 '/

    /, /<\/a><\/h3>/{if (!/

    / && !/<\/a><\/h3>/) print}' $i) # $(LC_ALL=date_locale date -r $i +"date_format")" + line="$n # $(awk '/

    /, /<\/a><\/h3>/{if (!/

    / && !/<\/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 @@ -588,7 +588,7 @@ create_css() { # This is the CSS file from my main page. Any other person would need it to run the blog # so it's attached here for convenience. - if [ "$(whoami)" == "carlesfe" ] && [ ! -f "main.css" ]; then + if [ "$(whoami)" == "carlesfe" ] && [ "$(hostname)" == "mmb" ] && [ ! -f "main.css" ]; then ln -s "../style.css" "main.css" # XXX This is clearly machine-dependent, beware! elif [ ! -f "main.css" ]; then echo 'body{font-family:Georgia,"Times New Roman",Times,serif;margin:0;padding:0;background-color:#F3F3F3;}