Merge pull request #11 from dasistdaniel/patch-1
New Twitter Comment Template "View more Posts" Template Fix
This commit is contained in:
commit
9332f2d22b
1 changed files with 5 additions and 2 deletions
7
bb.sh
7
bb.sh
|
@ -142,6 +142,9 @@ global_variables() {
|
||||||
template_subscribe_browser_button="Subscribe to this page..."
|
template_subscribe_browser_button="Subscribe to this page..."
|
||||||
# "Tweet" (used as twitter text button for posting to twitter)
|
# "Tweet" (used as twitter text button for posting to twitter)
|
||||||
template_twitter_button="Tweet"
|
template_twitter_button="Tweet"
|
||||||
|
|
||||||
|
template_twitter_comment="<Type your comment here but please leave the URL so that other people can follow the comments>"
|
||||||
|
|
||||||
# The locale to use for the dates displayed on screen (not for the timestamps)
|
# The locale to use for the dates displayed on screen (not for the timestamps)
|
||||||
date_format="%B %d, %Y"
|
date_format="%B %d, %Y"
|
||||||
date_locale="C"
|
date_locale="C"
|
||||||
|
@ -185,7 +188,7 @@ edit() {
|
||||||
# $1 the post URL
|
# $1 the post URL
|
||||||
twitter() {
|
twitter() {
|
||||||
echo "<p id='twitter'>$template_comments "
|
echo "<p id='twitter'>$template_comments "
|
||||||
echo "<a href=\"https://twitter.com/share\" class=\"twitter-share-button\" data-text=\"<Type your comment here but please leave the URL so that other people can follow the comments>\" data-url=\"$1\""
|
echo "<a href=\"https://twitter.com/share\" class=\"twitter-share-button\" data-text=\"$template_twitter_comment\" data-url=\"$1\""
|
||||||
|
|
||||||
if [ "$global_twitter_username" != "" ]; then
|
if [ "$global_twitter_username" != "" ]; then
|
||||||
echo " data-via=\"$global_twitter_username\""
|
echo " data-via=\"$global_twitter_username\""
|
||||||
|
@ -403,7 +406,7 @@ rebuild_index() {
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$global_feedburner" == "" ]; then
|
if [ "$global_feedburner" == "" ]; then
|
||||||
echo '<div id="all_posts"><a href="'$archive_index'">View more posts</a> — <a href="'$blog_feed'">'$template_subscribe'</a></div>' >> "$contentfile"
|
echo '<div id="all_posts"><a href="'$archive_index'">'$template_archive'</a> — <a href="'$blog_feed'">'$template_subscribe'</a></div>' >> "$contentfile"
|
||||||
else
|
else
|
||||||
echo '<div id="all_posts"><a href="'$archive_index'">'$template_archive'</a> — <a href="'$global_feedburner'">Subscribe</a></div>' >> "$contentfile"
|
echo '<div id="all_posts"><a href="'$archive_index'">'$template_archive'</a> — <a href="'$global_feedburner'">Subscribe</a></div>' >> "$contentfile"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue