From cb5e388f1e554280d11615b7866a6b79669ea6eb Mon Sep 17 00:00:00 2001 From: Carlos Bautista Date: Tue, 2 Apr 2013 16:52:11 +0200 Subject: [PATCH] Added disqus support --- bb.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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" }