diff --git a/bb.sh b/bb.sh index 1b9f5e6..fa308f3 100755 --- a/bb.sh +++ b/bb.sh @@ -90,6 +90,8 @@ global_config=".config" global_variables() { + if [[ -z $EDITOR ]]; then EDITOR=vim; fi + global_software_name="BashBlog" global_software_version="1.5.1" @@ -191,8 +193,8 @@ edit() { # # $1 the post URL twitter() { - echo "

$template_comments  " - echo " $template_comments  " + echo "' >> "$filename" # content + echo ${filename%.*.*} + if [[ ${filename%.*.*} != "index" && ${filename%.*.*} != "all_posts" ]]; then + cat disqus >> "$filename" + fi # page footer cat .footer.html >> "$filename" # close divs echo '' >> "$filename" # divbody and divbodyholder + cat disqus_footer >> "$filename" echo '' >> "$filename" }