diff --git a/bb.sh b/bb.sh index c034922..ae142d3 100755 --- a/bb.sh +++ b/bb.sh @@ -49,6 +49,8 @@ global_variables() { # Change this to your username if you want to use twitter for comments global_twitter_username="" + # Default image for the Twitter cards. Use an absolute URL + global_twitter_card_image="" # Set this to false for a Twitter button with share count. The cookieless version # is just a link. global_twitter_cookieless="true" @@ -345,8 +347,17 @@ twitter_card() { echo "" # Twitter truncates at 70 char description=$(grep -v "^

$template_tags_line_header" "$1" | sed -e 's/<[^>]*>//g' | tr '\n' ' ' | sed "s/\"/'/g" | head -c 250) echo "" - image=$(sed -n '2,$ d; s/.*" }