diff --git a/bb.sh b/bb.sh index 281a828..565cdc6 100755 --- a/bb.sh +++ b/bb.sh @@ -66,6 +66,7 @@ # ######################################################################################### # +# 2.3.1 Cookieless Twitter option # 2.3 Intelligent tag rebuilding and Markdown by default # 2.2 Flexible post title -> filename conversion # 2.1 Support for tags/categories @@ -116,7 +117,7 @@ global_config=".config" # by the 'global_config' file contents global_variables() { global_software_name="BashBlog" - global_software_version="2.3" + global_software_version="2.3.1" # Blog title global_title="My fancy blog" @@ -148,6 +149,9 @@ global_variables() { # Change this to your username if you want to use twitter for comments global_twitter_username="" + # Set this to false for a Twitter button with share count. The cookieless version + # is just a link. + global_twitter_cookieless="true" # Change this to your disqus username to use disqus for comments global_disqus_username="" @@ -423,15 +427,22 @@ twitter() { [[ -z "$global_twitter_username" ]] && return if [[ -z "$global_disqus_username" ]]; then - echo "

$template_comments " + if [[ "$global_twitter_cookieless" == "true" ]]; then + id=$RANDOM + echo "

$template_comments $template_twitter_button  

" + # Get current tweet count + echo '' + return; + else + echo "

$template_comments "; + fi else echo "

$template_comments  " fi echo "$template_twitter_button " echo "

" }