From 95e36a513783a0e3b5459dcac5132ac650cf8751 Mon Sep 17 00:00:00 2001 From: Carlos Fenollosa Date: Thu, 17 Jul 2014 16:47:57 +0200 Subject: [PATCH] Now the tweet count links to Topsy --- bb.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bb.sh b/bb.sh index c2c2d1b..4bfd373 100755 --- a/bb.sh +++ b/bb.sh @@ -66,6 +66,7 @@ # ######################################################################################### # +# 2.3.2 Option to use topsy instead of twitter for references # 2.3.1 Cookieless Twitter option # 2.3 Intelligent tag rebuilding and Markdown by default # 2.2 Flexible post title -> filename conversion @@ -152,6 +153,9 @@ global_variables() { # Set this to false for a Twitter button with share count. The cookieless version # is just a link. global_twitter_cookieless="true" + # Set to "topsy" which can search tweets way early in time, or "twitter" + # for the default search page, where tweets more than a week old are hidden + global_twitter_search="topsy" # Change this to your disqus username to use disqus for comments global_disqus_username="" @@ -429,8 +433,12 @@ twitter() { if [[ -z "$global_disqus_username" ]]; then if [[ "$global_twitter_cookieless" == "true" ]]; then id=$RANDOM + + search_engine="https://twitter.com/search?q=" + [[ "$global_twitter_search" == "topsy" ]] && search_engine="http://topsy.com/trackback?url=" + echo "

$template_comments $template_twitter_button " - echo " 

" + echo " 

" # Get current tweet count echo ''