octopress-social 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +11 -9
- data/lib/octopress-social/email.rb +4 -1
- data/lib/octopress-social/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b27b594472a3bee6b57fcabbac74abca1c50815
|
4
|
+
data.tar.gz: 587d0237852ed9b7b766f557ffa4c12c4c6f7e3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f53135023ff92f843ceacd311d2015b210f1817700f690a38be302f41b415717272b1bfc2fa991af92b1e01c5fc17ffd98d4553e6d09bcc76431a7c53873fd9
|
7
|
+
data.tar.gz: 230dfffc3171a891d789f8810e57287f206199c3a47e55fa6d9b7659fff81275b63396a541768bededb4c923b59e58d8366d8e593f41ce8590d09df9c0f9f36a
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -41,16 +41,17 @@ Configure this plugin in your site's `_config.yml`. No configurations are requir
|
|
41
41
|
|
42
42
|
```yaml
|
43
43
|
twitter:
|
44
|
-
username:
|
45
|
-
tweet_count: false
|
46
|
-
size: normal
|
47
|
-
|
48
|
-
tweet_message: ":title by :username :hashtags - :url" # With Tweet button Twitter add the URL last
|
49
|
-
embedded_link_color: # Set link color for embedded tweets
|
44
|
+
username: # Add your Twitter handle
|
45
|
+
tweet_count: false # Show number of shares on Twitter
|
46
|
+
size: normal # Or large
|
47
|
+
embedded_link_color: # Set link color for embedded tweets
|
50
48
|
|
51
|
-
follow_count: false
|
49
|
+
follow_count: false # Show number of followers
|
50
|
+
tweet_message: ":title by :username :hashtags - :url" # With Tweet button Twitter add the URL last
|
51
|
+
tweet_link_text: Twitter # Configure the link text
|
52
|
+
tweet_link_title: Share on Twitter # Share link title
|
52
53
|
profile_link_text: Follow :username
|
53
|
-
profile_link_title: Follow :username on Twitter #
|
54
|
+
profile_link_title: Follow :username on Twitter # Profile link title text
|
54
55
|
```
|
55
56
|
|
56
57
|
To include hashtags, in your tweet message add them in the YAML front matter of your post or page, like this:
|
@@ -143,7 +144,7 @@ facebook:
|
|
143
144
|
share_link_text: Facebook # Text for plain-old link
|
144
145
|
share_link_title: Share on Facebook # Share link title text
|
145
146
|
profile_link_text: Friend on Facebook
|
146
|
-
profile_link_title: Friend on Facebook #
|
147
|
+
profile_link_title: Friend on Facebook # Profile link title text
|
147
148
|
|
148
149
|
comment_count: 5 # Number of facebook comments to show by default
|
149
150
|
comments_link_text: Comments
|
@@ -246,6 +247,7 @@ email:
|
|
246
247
|
share_subject: :title by :author
|
247
248
|
share_message: :title by :author - :url
|
248
249
|
share_link_text: Email
|
250
|
+
share_link_title: Share via email
|
249
251
|
contact_link_text: Email :author
|
250
252
|
contact_link_title: Email :author
|
251
253
|
```
|
@@ -9,6 +9,7 @@ module Octopress
|
|
9
9
|
'share_subject' => ':title by :author',
|
10
10
|
'share_message' => ':title by :author - :url',
|
11
11
|
'share_link_text' => 'Email',
|
12
|
+
'share_link_title' => 'Share via email',
|
12
13
|
'contact_link_text' => 'Email :author',
|
13
14
|
'contact_link_title' => 'Email :author',
|
14
15
|
'address' => nil
|
@@ -57,7 +58,9 @@ module Octopress
|
|
57
58
|
end
|
58
59
|
|
59
60
|
def email_share_link(site, item)
|
60
|
-
%Q{<a class="email-share-link"
|
61
|
+
%Q{<a class="email-share-link"
|
62
|
+
href="mailto:?subject=#{subject(site, item)}&body=#{message(site, item)}"
|
63
|
+
title="#{config['share_link_title']}">#{config['share_link_text']}</a>}
|
61
64
|
end
|
62
65
|
|
63
66
|
def email_contact_link(site, item)
|